aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-04-01 02:55:59 +0200
committerMarcoFalke <falke.marco@gmail.com>2020-09-24 19:53:52 +0200
commitfaaf9c58e4aa809019d4ca12747dd47411988e37 (patch)
treee0ae4c00f33104e0dba50a18b7505a2fbdbc10de /src/rpc
parentfa19bb2cd8c575593583138a84e6bb3444d6196d (diff)
remove CRPCCommand constructor that takes rpcfn_type function pointer
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/server.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/rpc/server.h b/src/rpc/server.h
index b2358ac5b2..7d13edb8b0 100644
--- a/src/rpc/server.h
+++ b/src/rpc/server.h
@@ -85,7 +85,6 @@ void RPCUnsetTimerInterface(RPCTimerInterface *iface);
*/
void RPCRunLater(const std::string& name, std::function<void()> func, int64_t nSeconds);
-typedef UniValue(*rpcfn_type)(const JSONRPCRequest& jsonRequest);
typedef RPCHelpMan (*RpcMethodFnType)();
class CRPCCommand
@@ -116,14 +115,6 @@ public:
CHECK_NONFATAL(fn().GetArgNames() == args_in);
}
- //! Simplified constructor taking plain rpcfn_type function pointer.
- CRPCCommand(const char* category, const char* name, rpcfn_type fn, std::initializer_list<const char*> args)
- : CRPCCommand(category, name,
- [fn](const JSONRPCRequest& request, UniValue& result, bool) { result = fn(request); return true; },
- {args.begin(), args.end()}, intptr_t(fn))
- {
- }
-
std::string category;
std::string name;
Actor actor;