diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-09-22 19:08:36 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-09-24 19:53:24 +0200 |
commit | fa19bb2cd8c575593583138a84e6bb3444d6196d (patch) | |
tree | af0a4278e9139cbc524a284115e9e4d8aaa4294f /src/qt/test | |
parent | 1b313cacc99a1b372238f9036abed5491f9d28f7 (diff) |
remove dead rpc code
Checking for fHelp, or the size of the args, is dead code because:
* fHelp is always false (src/qt/test/rpcnestedtests.cpp)
* It is already implicitly called by RPCHelpMan::Check
(src/rpc/mining.cpp, src/rpc/misc.cpp, src/rpc/net.cpp)
Diffstat (limited to 'src/qt/test')
-rw-r--r-- | src/qt/test/rpcnestedtests.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/qt/test/rpcnestedtests.cpp b/src/qt/test/rpcnestedtests.cpp index de1fbcb94c..e2b94223a2 100644 --- a/src/qt/test/rpcnestedtests.cpp +++ b/src/qt/test/rpcnestedtests.cpp @@ -16,9 +16,6 @@ static UniValue rpcNestedTest_rpc(const JSONRPCRequest& request) { - if (request.fHelp) { - return "help message"; - } return request.params.write(0, 0); } |