Commit 1713489a authored by Drew's avatar Drew

Removing unnecessary foundation hacks

These foundation hacks were resolved in snapshot
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.
#if os(Linux)
extension String {
public func substringFromIndex(index: Index) -> String {
return self.bridge().substringFromIndex(index._utf16Index)
......@@ -23,11 +23,6 @@ extension String {
return (self as NSString)
#if os(Linux)
func writeToFile(path: String, atomically useAuxiliaryFile: Bool, encoding enc: NSStringEncoding) throws {
try self.toNSString.writeToFile(path, atomically: useAuxiliaryFile, encoding: enc)
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