Skip to content

Commit 5782073

Browse files
author
Florian Rieger
committed
Removed deprecated ErrorHandler protocol.
1 parent 15cc088 commit 5782073

File tree

5 files changed

+1
-102
lines changed

5 files changed

+1
-102
lines changed

Sources/ACInteractor/ErrorHandlerExtension.swift

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
public protocol Interactor: AnyObject, ErrorHandler {
3+
public protocol Interactor: AnyObject {
44
associatedtype Request
55
func execute(_ request: Request)
66
}

Sources/ACInteractor/LazyInteractor.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,3 @@ public class LazyInteractor<InteractorType: Interactor>: Interactor {
2525
}
2626

2727
}
28-
29-
30-
extension LazyInteractor: ErrorHandler {
31-
32-
public func handleError(_ request: ErrorRequest, error: Error) {
33-
getInteractor().handleError(request, error: error)
34-
}
35-
36-
}

Tests/ACInteractorTests/ErrorHandlerExtensionTests.swift

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

Tests/ACInteractorTests/LazyInteractorTests.swift

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,6 @@ class LazyInteractorTests: XCTestCase {
6060
XCTAssert(interactor.executedRequest === request)
6161
}
6262

63-
// MARK: handleError()
64-
65-
func testHandleError_callsHandleErrorOfInteractor() {
66-
// Arrange
67-
let request = TestInteractor.Request()
68-
let error = InteractorError(message: "TestError")
69-
70-
// Act
71-
lazyInteractor.handleError(request, error: error)
72-
73-
// Assert
74-
let interactor = lazyInteractor.getInteractor()
75-
XCTAssert(interactor.handledErrorRequest === request)
76-
XCTAssert(interactor.handledError as AnyObject === error)
77-
}
78-
79-
8063
// MARK: Test Interactor
8164

8265
class TestInteractor: Interactor {

0 commit comments

Comments
 (0)