diff --git a/Pilz.Net/Api/ApiServer.cs b/Pilz.Net/Api/ApiServer.cs index a5443f3..ef9e358 100644 --- a/Pilz.Net/Api/ApiServer.cs +++ b/Pilz.Net/Api/ApiServer.cs @@ -225,8 +225,6 @@ public class ApiServer : IApiServer public virtual void RegisterHandler(Delegate handler, ApiMessageHandlerAttribute attribute, bool throwOnError) { - var method = handler.Method; - // Resolves parameters var url = attribute.Route; var useRegEx = false;