Skip to content

Commit cc82da1

Browse files
Remove unnecessary #if os(WASI) condition in XMLParser.swift
1 parent 28d3495 commit cc82da1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Sources/FoundationXML/XMLParser.swift

-6
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)