From fa04f9b4ddffc5ef23c2ee7f3cc72a7c2ae49204 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Tue, 12 Jan 2021 06:41:46 +0100 Subject: rpc: Remove duplicate name and argNames from CRPCCommand --- src/rpc/server.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/rpc/server.h') diff --git a/src/rpc/server.h b/src/rpc/server.h index d2f44334ae..fe5a791e1e 100644 --- a/src/rpc/server.h +++ b/src/rpc/server.h @@ -103,7 +103,7 @@ public: } //! Simplified constructor taking plain RpcMethodFnType function pointer. - CRPCCommand(std::string category, std::string name_in, RpcMethodFnType fn, std::vector args_in) + CRPCCommand(std::string category, RpcMethodFnType fn) : CRPCCommand( category, fn().m_name, @@ -111,8 +111,6 @@ public: fn().GetArgNames(), intptr_t(fn)) { - CHECK_NONFATAL(fn().m_name == name_in); - CHECK_NONFATAL(fn().GetArgNames() == args_in); } std::string category; -- cgit v1.2.3