Skip to content

Commit 643efdb

Browse files
committed
remove unused method
1 parent 5a7b6a1 commit 643efdb

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

topic/topictypes/topictypes.go

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -152,31 +152,3 @@ func (d *TopicDescription) FromRaw(raw *rawtopic.DescribeTopicResult) {
152152
d.Attributes[k] = v
153153
}
154154
}
155-
156-
// ToRaw
157-
//
158-
// # Experimental
159-
//
160-
// Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
161-
func (d *TopicDescription) ToRaw(raw *rawtopic.DescribeTopicResult) {
162-
raw.Self.Name = d.Path
163-
d.PartitionSettings.ToRaw(&raw.PartitioningSettings)
164-
165-
raw.Consumers = make([]rawtopic.Consumer, len(d.Consumers))
166-
for i := 0; i < len(d.Consumers); i++ {
167-
d.Consumers[i].ToRaw(&raw.Consumers[i])
168-
}
169-
170-
raw.SupportedCodecs = make([]rawtopiccommon.Codec, len(d.SupportedCodecs))
171-
for i := 0; i < len(d.SupportedCodecs); i++ {
172-
raw.SupportedCodecs[i] = rawtopiccommon.Codec(d.SupportedCodecs[i])
173-
}
174-
175-
raw.PartitionWriteBurstBytes = d.PartitionWriteBurstBytes
176-
raw.PartitionWriteSpeedBytesPerSecond = d.PartitionWriteSpeedBytesPerSecond
177-
178-
raw.Attributes = make(map[string]string)
179-
for k, v := range d.Attributes {
180-
raw.Attributes[k] = v
181-
}
182-
}

0 commit comments

Comments
 (0)