Skip to content

Commit 4c6f7b3

Browse files
committed
refactor: drop unused ParseInt{32,64}V(), unresolvable ParseDoubleV()
1 parent da16428 commit 4c6f7b3

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

src/rpc/util.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -121,24 +121,6 @@ std::vector<unsigned char> ParseHexO(const UniValue& o, std::string strKey)
121121
return ParseHexV(o.find_value(strKey), strKey);
122122
}
123123

124-
int32_t ParseInt32V(const UniValue& v, const std::string &strName)
125-
{
126-
const std::string& strNum = v.getValStr();
127-
int32_t num;
128-
if (!ParseInt32(strNum, &num))
129-
throw JSONRPCError(RPC_INVALID_PARAMETER, strName+" must be a 32bit integer (not '"+strNum+"')");
130-
return num;
131-
}
132-
133-
int64_t ParseInt64V(const UniValue& v, const std::string &strName)
134-
{
135-
const std::string& strNum = v.getValStr();
136-
int64_t num;
137-
if (!ParseInt64(strNum, &num))
138-
throw JSONRPCError(RPC_INVALID_PARAMETER, strName+" must be a 64bit integer (not '"+strNum+"')");
139-
return num;
140-
}
141-
142124
bool ParseBoolV(const UniValue& v, const std::string &strName)
143125
{
144126
std::string strBool;

src/rpc/util.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ uint256 ParseHashO(const UniValue& o, std::string strKey);
9393
std::vector<unsigned char> ParseHexV(const UniValue& v, std::string strName);
9494
std::vector<unsigned char> ParseHexO(const UniValue& o, std::string strKey);
9595

96-
int32_t ParseInt32V(const UniValue& v, const std::string &strName);
97-
int64_t ParseInt64V(const UniValue& v, const std::string &strName);
98-
double ParseDoubleV(const UniValue& v, const std::string &strName);
9996
bool ParseBoolV(const UniValue& v, const std::string &strName);
10097

10198
/**

0 commit comments

Comments
 (0)