diff --git a/src/sync.cpp b/src/sync.cpp --- a/src/sync.cpp +++ b/src/sync.cpp @@ -47,8 +47,7 @@ std::string ToString() const { return strprintf("%s %s:%s%s (in thread %s)", mutexName, sourceFile, - itostr(sourceLine), (fTry ? " (TRY)" : ""), - m_thread_name); + sourceLine, (fTry ? " (TRY)" : ""), m_thread_name); } std::string Name() const { return mutexName; } diff --git a/src/test/fuzz/integer.cpp b/src/test/fuzz/integer.cpp --- a/src/test/fuzz/integer.cpp +++ b/src/test/fuzz/integer.cpp @@ -95,7 +95,6 @@ (void)IsDigit(ch); (void)IsSpace(ch); (void)IsSwitchChar(ch); - (void)itostr(i32); (void)memusage::DynamicUsage(ch); (void)memusage::DynamicUsage(i16); (void)memusage::DynamicUsage(i32); diff --git a/src/test/fuzz/locale.cpp b/src/test/fuzz/locale.cpp --- a/src/test/fuzz/locale.cpp +++ b/src/test/fuzz/locale.cpp @@ -808,7 +808,6 @@ const std::string i64tostr_without_locale = i64tostr(random_int64); const int32_t random_int32 = fuzzed_data_provider.ConsumeIntegral(); - const std::string itostr_without_locale = itostr(random_int32); const std::string strprintf_int_without_locale = strprintf("%d", random_int64); const double random_double = @@ -841,8 +840,6 @@ assert(atoi_without_locale == atoi_with_locale); const std::string i64tostr_with_locale = i64tostr(random_int64); assert(i64tostr_without_locale == i64tostr_with_locale); - const std::string itostr_with_locale = itostr(random_int32); - assert(itostr_without_locale == itostr_with_locale); const std::string strprintf_int_with_locale = strprintf("%d", random_int64); assert(strprintf_int_without_locale == strprintf_int_with_locale); const std::string strprintf_double_with_locale = diff --git a/src/util/strencodings.h b/src/util/strencodings.h --- a/src/util/strencodings.h +++ b/src/util/strencodings.h @@ -63,7 +63,6 @@ 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); diff --git a/src/util/strencodings.cpp b/src/util/strencodings.cpp --- a/src/util/strencodings.cpp +++ b/src/util/strencodings.cpp @@ -455,10 +455,6 @@ return strprintf("%d", n); } -std::string itostr(int n) { - return strprintf("%d", n); -} - int64_t atoi64(const char *psz) { #ifdef _MSC_VER return _atoi64(psz);