Skip to content

Commit 52070bf

Browse files
committed
Remove unused HandlerKind enumeration (#43).
1 parent f16396f commit 52070bf

7 files changed

+0
-53
lines changed

src/Client/Handlers/DelegateEmptyNotificationHandler.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ public DelegateEmptyNotificationHandler(string method, NotificationHandler handl
3232
/// </summary>
3333
public NotificationHandler Handler { get; }
3434

35-
/// <summary>
36-
/// The kind of handler.
37-
/// </summary>
38-
public override HandlerKind Kind => HandlerKind.EmptyNotification;
39-
4035
/// <summary>
4136
/// Invoke the handler.
4237
/// </summary>

src/Client/Handlers/DelegateHandler.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,5 @@ protected DelegateHandler(string method)
2626
/// The name of the method handled by the handler.
2727
/// </summary>
2828
public string Method { get; }
29-
30-
/// <summary>
31-
/// The kind of handler.
32-
/// </summary>
33-
public abstract HandlerKind Kind { get; }
3429
}
3530
}

src/Client/Handlers/DelegateNotificationHandler.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ public DelegateNotificationHandler(string method, NotificationHandler<TNotificat
3636
/// </summary>
3737
public NotificationHandler<TNotification> Handler { get; }
3838

39-
/// <summary>
40-
/// The kind of handler.
41-
/// </summary>
42-
public override HandlerKind Kind => HandlerKind.EmptyNotification;
43-
4439
/// <summary>
4540
/// Invoke the handler.
4641
/// </summary>

src/Client/Handlers/DelegateRequestHandler.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ public DelegateRequestHandler(string method, RequestHandler<TRequest> handler)
3737
/// </summary>
3838
public RequestHandler<TRequest> Handler { get; }
3939

40-
/// <summary>
41-
/// The kind of handler.
42-
/// </summary>
43-
public override HandlerKind Kind => HandlerKind.Request;
44-
4540
/// <summary>
4641
/// Invoke the handler.
4742
/// </summary>

src/Client/Handlers/DelegateRequestResponseHandler.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ public DelegateRequestResponseHandler(string method, RequestHandler<TRequest, TR
4040
/// </summary>
4141
public RequestHandler<TRequest, TResponse> Handler { get; }
4242

43-
/// <summary>
44-
/// The kind of handler.
45-
/// </summary>
46-
public override HandlerKind Kind => HandlerKind.Request;
47-
4843
/// <summary>
4944
/// Invoke the handler.
5045
/// </summary>

src/Client/Handlers/HandlerKind.cs

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

src/Client/Handlers/IHandler.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,5 @@ public interface IHandler
99
/// The name of the method handled by the handler.
1010
/// </summary>
1111
string Method { get; }
12-
13-
/// <summary>
14-
/// The kind of handler.
15-
/// </summary>
16-
HandlerKind Kind { get; }
1712
}
1813
}

0 commit comments

Comments
 (0)