aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/client.h
diff options
context:
space:
mode:
authorstickies-v <stickies-v@protonmail.com>2023-03-03 15:07:31 +0000
committerstickies-v <stickies-v@protonmail.com>2023-03-23 18:18:46 +0000
commitcfbc8a623b5133f1d0b0c0c9be73b2b107e0d687 (patch)
tree3926d900923a28d8e8f8bcef609ccc26bd8e9338 /src/rpc/client.h
parent6c8bde6d54d03224709dce54b8ba32b8c3e37ac7 (diff)
downloadbitcoin-cfbc8a623b5133f1d0b0c0c9be73b2b107e0d687.tar.xz
refactor: rpc: hide and rename ParseNonRFCJSONValue()
As per https://github.com/bitcoin/bitcoin/pull/26506#pullrequestreview-1211984059, this function is no longer necessary and we can use UniValue::read() directly. To avoid code duplication, we keep the function to throw on invalid input data but rename it to Parse() and remove it from the header.
Diffstat (limited to 'src/rpc/client.h')
-rw-r--r--src/rpc/client.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/rpc/client.h b/src/rpc/client.h
index 3c5c4fc4d6..b67cd27fdf 100644
--- a/src/rpc/client.h
+++ b/src/rpc/client.h
@@ -17,9 +17,4 @@ UniValue RPCConvertValues(const std::string& strMethod, const std::vector<std::s
/** Convert named arguments to command-specific RPC representation */
UniValue RPCConvertNamedValues(const std::string& strMethod, const std::vector<std::string>& strParams);
-/** Non-RFC4627 JSON parser, accepts internal values (such as numbers, true, false, null)
- * as well as objects and arrays.
- */
-UniValue ParseNonRFCJSONValue(std::string_view raw);
-
#endif // BITCOIN_RPC_CLIENT_H