Skip to content

Commit

Permalink
Merge pull request #28 from ishkawa/remove-unnecessary-overriding
Browse files Browse the repository at this point in the history
Remove unnecessary overriding
  • Loading branch information
ishkawa committed Apr 22, 2015
2 parents 9edae4b + a4d72a5 commit 75b7c6e
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 75b7c6e

Please sign in to comment.