From a4d72a590f91348698ed7b4ab2df5a79ab36d3dc Mon Sep 17 00:00:00 2001 From: Syo Ikeda Date: Wed, 22 Apr 2015 22:36:59 +0900 Subject: [PATCH] Remove unnecessary overriding These are not needed anymore in Swift 1.2, they can be compiled now. --- APIKitTests/APITests.swift | 8 -------- DemoApp/GitHub.swift | 8 -------- 2 files changed, 16 deletions(-) diff --git a/APIKitTests/APITests.swift b/APIKitTests/APITests.swift index a29bbd48..d5f67023 100644 --- a/APIKitTests/APITests.swift +++ b/APIKitTests/APITests.swift @@ -10,14 +10,6 @@ class APITests: XCTestCase { return NSURL(string: "https://api.github.com")! } - override class var requestBodyBuilder: RequestBodyBuilder { - return .JSON(writingOptions: nil) - } - - override class var responseBodyParser: ResponseBodyParser { - return .JSON(readingOptions: nil) - } - override class func responseErrorFromObject(object: AnyObject) -> NSError { return NSError(domain: "MockAPIErrorDomain", code: 10000, userInfo: nil) } diff --git a/DemoApp/GitHub.swift b/DemoApp/GitHub.swift index 8430f3ca..cfb535e1 100644 --- a/DemoApp/GitHub.swift +++ b/DemoApp/GitHub.swift @@ -7,14 +7,6 @@ class GitHub: API { return NSURL(string: "https://api.github.com")! } - override class var requestBodyBuilder: RequestBodyBuilder { - return .JSON(writingOptions: nil) - } - - override class var responseBodyParser: ResponseBodyParser { - return .JSON(readingOptions: nil) - } - class Endpoint { // https://developer.github.com/v3/search/#search-repositories class SearchRepositories: APIKit.Request {