diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-02-29 00:27:48 +0700 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-02-29 00:25:37 +0700 |
commit | fab30b61eb51538a4db62e34f7133c44575b3fe9 (patch) | |
tree | 4c73aa9f55463ae61fbf0e3237358e7fe26efb51 /src/util/moneystr.cpp | |
parent | e5753fa4e808aab0f10641a5ed4d53fa1ae0e141 (diff) |
util: Remove unused ParseMoney that takes a c_str
Diffstat (limited to 'src/util/moneystr.cpp')
-rw-r--r-- | src/util/moneystr.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/util/moneystr.cpp b/src/util/moneystr.cpp index 2797f450ca..981cb1b267 100644 --- a/src/util/moneystr.cpp +++ b/src/util/moneystr.cpp @@ -36,14 +36,10 @@ bool ParseMoney(const std::string& str, CAmount& nRet) if (!ValidAsCString(str)) { return false; } - return ParseMoney(str.c_str(), nRet); -} -bool ParseMoney(const char* pszIn, CAmount& nRet) -{ std::string strWhole; int64_t nUnits = 0; - const char* p = pszIn; + const char* p = str.c_str(); while (IsSpace(*p)) p++; for (; *p; p++) |