aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2020-03-28 19:10:07 +0100
committerWladimir J. van der Laan <[email protected]>2020-03-28 19:26:45 +0100
commit1668c80bdcc3c2742fbe220573f5b5248129f3fa (patch)
tree8a594548fc1dbcc8c44a798486b3eef47c20e7ad /src/util
parentMerge #18415: scripts: add MACHO tests to test-security-check.py (diff)
parentutil: Replace i64tostr with ToString (diff)
downloaddiscoin-1668c80bdcc3c2742fbe220573f5b5248129f3fa.tar.xz
discoin-1668c80bdcc3c2742fbe220573f5b5248129f3fa.zip
Merge #18449: util: Remove unused itostr
faaf1cb5b9a4c22b21757f7578833f908b79b867 util: Replace i64tostr with ToString (MarcoFalke) fac96fff624a3ab65209dcd3378efb6e6ab47a58 util: Remove unused itostr (MarcoFalke) Pull request description: Currently unused, but if someone really needed to use a helper with this functionality in the future, they could use `ToString`. ACKs for top commit: laanwj: ACK faaf1cb5b9a4c22b21757f7578833f908b79b867 promag: Code review ACK faaf1cb5b9a4c22b21757f7578833f908b79b867. Tree-SHA512: 42180c03f51d677f7b69da23c7868bdd88944335fad0752fcc307f2c3e3c69f1cc1b316ac0875bcefb9a69c5d55200d7cf66843ea4c0f0f26baf7a054b96c1bb
Diffstat (limited to 'src/util')
-rw-r--r--src/util/strencodings.cpp10
-rw-r--r--src/util/strencodings.h4
2 files changed, 1 insertions, 13 deletions
diff --git a/src/util/strencodings.cpp b/src/util/strencodings.cpp
index eec1a52e9..16917ccb4 100644
--- a/src/util/strencodings.cpp
+++ b/src/util/strencodings.cpp
@@ -407,16 +407,6 @@ std::string FormatParagraph(const std::string& in, size_t width, size_t indent)
return out.str();
}
-std::string i64tostr(int64_t n)
-{
- return strprintf("%d", n);
-}
-
-std::string itostr(int n)
-{
- return strprintf("%d", n);
-}
-
int64_t atoi64(const char* psz)
{
#ifdef _MSC_VER
diff --git a/src/util/strencodings.h b/src/util/strencodings.h
index ccc4edac1..11317f043 100644
--- a/src/util/strencodings.h
+++ b/src/util/strencodings.h
@@ -54,9 +54,7 @@ std::string DecodeBase32(const std::string& str, bool* pf_invalid = nullptr);
std::string EncodeBase32(const unsigned char* pch, size_t len);
std::string EncodeBase32(const std::string& str);
-void SplitHostPort(std::string in, int &portOut, std::string &hostOut);
-std::string i64tostr(int64_t n);
-std::string itostr(int n);
+void SplitHostPort(std::string in, int& portOut, std::string& hostOut);
int64_t atoi64(const char* psz);
int64_t atoi64(const std::string& str);
int atoi(const std::string& str);