Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim committed Apr 6, 2020
1 parent 2047b10 commit ddea49a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Sources/LeafErrorMiddleware/LeafErrorMiddleware.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,6 @@ public final class LeafErrorMiddleware: Middleware {
}
}

extension HTTPStatus {
internal init(_ error: Error) {
if let abort = error as? AbortError {
self = abort.status
} else {
self = .internalServerError
}
}
}

private extension HTTPResponseStatus {
var representsError: Bool {
return (HTTPResponseStatus.badRequest.code ... HTTPResponseStatus.networkAuthenticationRequired.code) ~= code
Expand Down

0 comments on commit ddea49a

Please sign in to comment.