Skip to content

Commit a99f9be

Browse files
committed
Merge pull request #4182
be54b87 remove ParseString(...) which is never used (Kamil Domanski)
2 parents bfae70a + be54b87 commit a99f9be

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

src/util.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -303,26 +303,6 @@ int LogPrintStr(const std::string &str)
303303
return ret;
304304
}
305305

306-
void ParseString(const string& str, char c, vector<string>& v)
307-
{
308-
if (str.empty())
309-
return;
310-
string::size_type i1 = 0;
311-
string::size_type i2;
312-
while (true)
313-
{
314-
i2 = str.find(c, i1);
315-
if (i2 == str.npos)
316-
{
317-
v.push_back(str.substr(i1));
318-
return;
319-
}
320-
v.push_back(str.substr(i1, i2-i1));
321-
i1 = i2+1;
322-
}
323-
}
324-
325-
326306
string FormatMoney(int64_t n, bool fPlus)
327307
{
328308
// Note: not using straight sprintf here because we do NOT want

src/util.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ static inline bool error(const char* format)
153153

154154
void LogException(std::exception* pex, const char* pszThread);
155155
void PrintExceptionContinue(std::exception* pex, const char* pszThread);
156-
void ParseString(const std::string& str, char c, std::vector<std::string>& v);
157156
std::string FormatMoney(int64_t n, bool fPlus=false);
158157
bool ParseMoney(const std::string& str, int64_t& nRet);
159158
bool ParseMoney(const char* pszIn, int64_t& nRet);

0 commit comments

Comments
 (0)