Skip to content

Commit 010807a

Browse files
committed
Revert "Uplifting PR 299 to work with the latest Foundation"
This reverts commit 5fdd36b.
1 parent 57b7a0a commit 010807a

20 files changed

+812
-5779
lines changed

CoreFoundation/Base.subproj/ForSwiftFoundationOnly.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include <CoreFoundation/CFXMLInterface.h>
2424
#include <CoreFoundation/CFRegularExpression.h>
2525
#include <CoreFoundation/CFLogUtilities.h>
26-
#include <CoreFoundation/CFURLSessionInterface.h>
2726
#include <CoreFoundation/ForFoundationOnly.h>
2827
#include <fts.h>
2928
#include <pthread.h>

CoreFoundation/URL.subproj/CFURLSessionInterface.c

Lines changed: 0 additions & 609 deletions
This file was deleted.

CoreFoundation/URL.subproj/CFURLSessionInterface.h

Lines changed: 0 additions & 605 deletions
This file was deleted.

Foundation/NSData.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,11 @@ extension NSData {
338338
if url.isFileURL {
339339
try self.init(contentsOfFile: url.path, options: readOptionsMask)
340340
} else {
341-
let session = URLSession(configuration: URLSessionConfiguration.default)
341+
let session = URLSession(configuration: URLSessionConfiguration.defaultSessionConfiguration())
342342
let cond = NSCondition()
343343
var resError: NSError?
344344
var resData: Data?
345-
let task = session.dataTask(with: url, completionHandler: { (data: Data?, response: URLResponse?, error: NSError?) -> Void in
345+
let task = session.dataTaskWithURL(url, completionHandler: { (data: Data?, response: URLResponse?, error: NSError?) -> Void in
346346
resData = data
347347
resError = error
348348
cond.broadcast()

Foundation/NSURLSession.swift

Lines changed: 805 additions & 0 deletions
Large diffs are not rendered by default.

Foundation/NSURLSession/Configuration.swift

Lines changed: 0 additions & 137 deletions
This file was deleted.

0 commit comments

Comments
 (0)