aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-08-17 17:34:06 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-08-17 17:56:59 +0200
commit71e0f07e9c5f0aef532b85c04807dcbedd04e0af (patch)
tree5eb6d8d4aebe5fa0571807a4e32d5b4dd09c14a3 /src/util
parent1bc8e8eae2dc4b47ef67afc6880ea48b8e84a086 (diff)
util: remove unused c-string variant of atoi64()
Diffstat (limited to 'src/util')
-rw-r--r--src/util/strencodings.cpp9
-rw-r--r--src/util/strencodings.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/src/util/strencodings.cpp b/src/util/strencodings.cpp
index d10f92ffe6..4d51b9045e 100644
--- a/src/util/strencodings.cpp
+++ b/src/util/strencodings.cpp
@@ -407,15 +407,6 @@ std::string FormatParagraph(const std::string& in, size_t width, size_t indent)
return out.str();
}
-int64_t atoi64(const char* psz)
-{
-#ifdef _MSC_VER
- return _atoi64(psz);
-#else
- return strtoll(psz, nullptr, 10);
-#endif
-}
-
int64_t atoi64(const std::string& str)
{
#ifdef _MSC_VER
diff --git a/src/util/strencodings.h b/src/util/strencodings.h
index eaa0fa9992..b4bbaeebf6 100644
--- a/src/util/strencodings.h
+++ b/src/util/strencodings.h
@@ -56,7 +56,6 @@ 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);
-int64_t atoi64(const char* psz);
int64_t atoi64(const std::string& str);
int atoi(const std::string& str);