Skip to content

Commit

Permalink
Remove unnecessary overriding
Browse files Browse the repository at this point in the history
These are not needed anymore in Swift 1.2, they can be compiled now.
  • Loading branch information
ikesyo committed Apr 22, 2015
1 parent 9edae4b commit a4d72a5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions APIKitTests/APITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
8 changes: 0 additions & 8 deletions DemoApp/GitHub.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a4d72a5

Please sign in to comment.