File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -412,9 +412,6 @@ open class XMLParser : NSObject {
412412
413413 // initializes the parser with the specified URL.
414414 public convenience init ? ( contentsOf url: URL ) {
415- #if os(WASI)
416- return nil
417- #else
418415 setupXMLParsing ( )
419416 if url. isFileURL {
420417 if let stream = InputStream ( url: url) {
@@ -432,7 +429,6 @@ open class XMLParser : NSObject {
432429 return nil
433430 }
434431 }
435- #endif
436432 }
437433
438434 // create the parser from data
@@ -448,15 +444,13 @@ open class XMLParser : NSObject {
448444 _CFXMLInterfaceDestroyContext ( _parserContext)
449445 }
450446
451- #if !os(WASI)
452447 //create a parser that incrementally pulls data from the specified stream and parses it.
453448 public init ( stream: InputStream ) {
454449 setupXMLParsing ( )
455450 _stream = stream
456451 _handler = _CFXMLInterfaceCreateSAXHandler ( )
457452 _parserContext = nil
458453 }
459- #endif
460454
461455 open weak var delegate : XMLParserDelegate ?
462456
You can’t perform that action at this time.
0 commit comments