diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-01-12 06:41:46 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-01-28 08:19:52 +0100 |
commit | fa04f9b4ddffc5ef23c2ee7f3cc72a7c2ae49204 (patch) | |
tree | d0e54a820a23c4db4ae7e56136b161ca476da201 /src/rpc/server.h | |
parent | fa92912b4bb4629addcbfdfb7cc000be701614af (diff) |
rpc: Remove duplicate name and argNames from CRPCCommand
Diffstat (limited to 'src/rpc/server.h')
-rw-r--r-- | src/rpc/server.h | 4 |
1 files changed, 1 insertions, 3 deletions
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<std::string> 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; |