Skip to content

Commit b5bbd83

Browse files
committed
remove Span<UInt8> inits
1 parent 7d99212 commit b5bbd83

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Sources/JSONParsing/JSON.Object (ext).swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@ extension JSON.Object {
99
public init(parsing json: JSON) throws {
1010
self.init(try JSON.NodeRule<Int>.Object.parse(json.utf8))
1111
}
12-
/// Attempts to parse a JSON object from a span.
13-
public init(parsing span: Span<UInt8>) throws {
14-
self.init(
15-
try span.withUnsafeBufferPointer { buffer in
16-
try JSON.NodeRule<Int>.Object.parse(buffer)
17-
}
18-
)
19-
}
2012
/// Attempts to parse a JSON object from a raw span.
2113
public init(parsing span: RawSpan) throws {
2214
self.init(

0 commit comments

Comments
 (0)