Skip to content

Commit a620a2f

Browse files
committed
remove unecessary code
1 parent 9c283c3 commit a620a2f

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

Sources/AWSLambdaRuntime/LambdaRuntimeClient.swift

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,23 +67,10 @@ final actor LambdaRuntimeClient: LambdaRuntimeClientProtocol {
6767
NIOLoopBound<LambdaChannelHandler<LambdaRuntimeClient>>, any Error
6868
>
6969

70-
private enum ConnectionState: Equatable {
70+
private enum ConnectionState {
7171
case disconnected
7272
case connecting([ConnectionContinuation])
7373
case connected(Channel, LambdaChannelHandler<LambdaRuntimeClient>)
74-
75-
static func == (lhs: ConnectionState, rhs: ConnectionState) -> Bool {
76-
switch (lhs, rhs) {
77-
case (.disconnected, .disconnected):
78-
return true
79-
case (.connecting, .connecting):
80-
return true
81-
case (.connected, .connected):
82-
return true
83-
default:
84-
return false
85-
}
86-
}
8774
}
8875

8976
enum LambdaState {

0 commit comments

Comments
 (0)