aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-03-27 09:05:31 -0400
committerMarcoFalke <falke.marco@gmail.com>2020-03-27 08:59:06 -0400
commitfac96fff624a3ab65209dcd3378efb6e6ab47a58 (patch)
treea9882d892ca27da176029e3f364c54d58c735ff1 /src/util
parente3154aacf444a29f9f5642b6c937e875ab9a2c13 (diff)
util: Remove unused itostr
Diffstat (limited to 'src/util')
-rw-r--r--src/util/strencodings.cpp5
-rw-r--r--src/util/strencodings.h3
2 files changed, 1 insertions, 7 deletions
diff --git a/src/util/strencodings.cpp b/src/util/strencodings.cpp
index eec1a52e95..9dab6af60c 100644
--- a/src/util/strencodings.cpp
+++ b/src/util/strencodings.cpp
@@ -412,11 +412,6 @@ 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 ccc4edac12..6ce17ec01e 100644
--- a/src/util/strencodings.h
+++ b/src/util/strencodings.h
@@ -54,9 +54,8 @@ 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);
+void SplitHostPort(std::string in, int& portOut, std::string& hostOut);
std::string i64tostr(int64_t n);
-std::string itostr(int n);
int64_t atoi64(const char* psz);
int64_t atoi64(const std::string& str);
int atoi(const std::string& str);