Skip to content

Commit 0c34639

Browse files
committed
Remove comment that may be inaccurate
1 parent 24af779 commit 0c34639

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Sources/SwiftProtobuf/JSONEncodingVisitor.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,6 @@ internal struct JSONEncodingVisitor: Visitor {
284284
let alwaysPrintEnumsAsInts = options.alwaysPrintEnumsAsInts
285285
try _visitRepeated(value: value, fieldNumber: fieldNumber) {
286286
(encoder: inout JSONEncoder, v: E) throws in
287-
// TODO: This cast is expensive to repeat for every item
288-
// in the array. To eliminate it, make `encodedJSONString`
289-
// static, and cast E.self to _CustomJSONCodable.Type outside
290-
// of this loop so we can use that static method.
291287
if let e = v as? _CustomJSONCodable {
292288
let json = try e.encodedJSONString(options: options)
293289
encoder.append(text: json)

0 commit comments

Comments
 (0)