File tree 1 file changed +0
-6
lines changed
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 {
412
412
413
413
// initializes the parser with the specified URL.
414
414
public convenience init ? ( contentsOf url: URL ) {
415
- #if os(WASI)
416
- return nil
417
- #else
418
415
setupXMLParsing ( )
419
416
if url. isFileURL {
420
417
if let stream = InputStream ( url: url) {
@@ -432,7 +429,6 @@ open class XMLParser : NSObject {
432
429
return nil
433
430
}
434
431
}
435
- #endif
436
432
}
437
433
438
434
// create the parser from data
@@ -448,15 +444,13 @@ open class XMLParser : NSObject {
448
444
_CFXMLInterfaceDestroyContext ( _parserContext)
449
445
}
450
446
451
- #if !os(WASI)
452
447
//create a parser that incrementally pulls data from the specified stream and parses it.
453
448
public init ( stream: InputStream ) {
454
449
setupXMLParsing ( )
455
450
_stream = stream
456
451
_handler = _CFXMLInterfaceCreateSAXHandler ( )
457
452
_parserContext = nil
458
453
}
459
- #endif
460
454
461
455
open weak var delegate : XMLParserDelegate ?
462
456
You can’t perform that action at this time.
0 commit comments