Skip to content

Commit

Permalink
Merge pull request bitcoin#4182
Browse files Browse the repository at this point in the history
be54b87 remove ParseString(...) which is never used (Kamil Domanski)
  • Loading branch information
laanwj committed May 13, 2014
2 parents bfae70a + be54b87 commit a99f9be
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
20 changes: 0 additions & 20 deletions src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,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);
Expand Down

0 comments on commit a99f9be

Please sign in to comment.