diff options
| author | Kamil Domanski <[email protected]> | 2014-05-13 11:11:02 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-05-21 11:25:28 +0200 |
| commit | e917bdb563f9a154167dc9c1da74f7d3f06253be (patch) | |
| tree | e94c4c56f00516d000d57dd7256aa3ae3574f929 | |
| parent | switch from boost int types to <stdint.h> (diff) | |
| download | discoin-e917bdb563f9a154167dc9c1da74f7d3f06253be.tar.xz discoin-e917bdb563f9a154167dc9c1da74f7d3f06253be.zip | |
remove ParseString(...) which is never used
Rebased-By: Wladimir J. van der Laan <[email protected]>
Rebased-From: be54b87
| -rw-r--r-- | src/util.cpp | 20 | ||||
| -rw-r--r-- | src/util.h | 1 |
2 files changed, 0 insertions, 21 deletions
diff --git a/src/util.cpp b/src/util.cpp index 521d54191..8af47643c 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -303,26 +303,6 @@ int LogPrintStr(const std::string &str) return ret; } -void ParseString(const string& str, char c, vector<string>& v) -{ - if (str.empty()) - return; - string::size_type i1 = 0; - string::size_type i2; - while (true) - { - i2 = str.find(c, i1); - if (i2 == str.npos) - { - v.push_back(str.substr(i1)); - return; - } - v.push_back(str.substr(i1, i2-i1)); - i1 = i2+1; - } -} - - string FormatMoney(int64_t n, bool fPlus) { // Note: not using straight sprintf here because we do NOT want diff --git a/src/util.h b/src/util.h index 031dbd901..5555e1b33 100644 --- a/src/util.h +++ b/src/util.h @@ -154,7 +154,6 @@ static inline bool error(const char* format) void LogException(std::exception* pex, const char* pszThread); void PrintExceptionContinue(std::exception* pex, const char* pszThread); -void ParseString(const std::string& str, char c, std::vector<std::string>& v); std::string FormatMoney(int64_t n, bool fPlus=false); bool ParseMoney(const std::string& str, int64_t& nRet); bool ParseMoney(const char* pszIn, int64_t& nRet); |