Skip to content

Commit ffac6f1

Browse files
authored
Merge pull request #2474 from millenomi/xmldocument-coding-xslt
Parity: XMLDocument: NSCoding, XSLT
2 parents 10dfaf5 + 61c4ec3 commit ffac6f1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Foundation/XMLDocument.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,6 @@ open class XMLDocument : XMLNode {
125125
}
126126
}
127127

128-
open class func replacementClass(for cls: AnyClass) -> AnyClass {
129-
NSUnimplemented()
130-
}
131-
132128
/*!
133129
@method characterEncoding
134130
@abstract Sets the character encoding to an IANA type.
@@ -341,6 +337,7 @@ open class XMLDocument : XMLNode {
341337
@method objectByApplyingXSLT:arguments:error:
342338
@abstract Applies XSLT with arguments (NSString key/value pairs) to this document, returning a new document.
343339
*/
340+
@available(*, unavailable, message: "XSLT application is not currently supported in swift-corelibs-foundation")
344341
open func object(byApplyingXSLT xslt: Data, arguments: [String : String]?) throws -> Any {
345342
NSUnimplemented()
346343
}
@@ -349,6 +346,7 @@ open class XMLDocument : XMLNode {
349346
@method objectByApplyingXSLTString:arguments:error:
350347
@abstract Applies XSLT as expressed by a string with arguments (NSString key/value pairs) to this document, returning a new document.
351348
*/
349+
@available(*, unavailable, message: "XSLT application is not currently supported in swift-corelibs-foundation")
352350
open func object(byApplyingXSLTString xslt: String, arguments: [String : String]?) throws -> Any {
353351
NSUnimplemented()
354352
}
@@ -357,6 +355,7 @@ open class XMLDocument : XMLNode {
357355
@method objectByApplyingXSLTAtURL:arguments:error:
358356
@abstract Applies the XSLT at a URL with arguments (NSString key/value pairs) to this document, returning a new document. Error may contain a connection error from the URL.
359357
*/
358+
@available(*, unavailable, message: "XSLT application is not currently supported in swift-corelibs-foundation")
360359
open func objectByApplyingXSLT(at xsltURL: URL, arguments argument: [String : String]?) throws -> Any {
361360
NSUnimplemented()
362361
}

0 commit comments

Comments
 (0)