Commit 1713489a authored by Drew's avatar Drew

Removing unnecessary foundation hacks

These foundation hacks were resolved in snapshot
swift-DEVELOPMENT-SNAPSHOT-2016-01-25-a
parent a1eb8df4
Pipeline #856 passed with stage
......@@ -12,12 +12,3 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//SR-138
#if os(Linux)
extension String {
@warn_unused_result
public func substringFromIndex(index: Index) -> String {
return self.bridge().substringFromIndex(index._utf16Index)
}
}
#endif
......@@ -23,11 +23,6 @@ extension String {
return (self as NSString)
#endif
}
#if os(Linux)
func writeToFile(path: String, atomically useAuxiliaryFile: Bool, encoding enc: NSStringEncoding) throws {
try self.toNSString.writeToFile(path, atomically: useAuxiliaryFile, encoding: enc)
}
#endif
}
extension NSString {
var toString: String {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment