diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-03-27 09:05:31 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-03-27 08:59:06 -0400 |
commit | fac96fff624a3ab65209dcd3378efb6e6ab47a58 (patch) | |
tree | a9882d892ca27da176029e3f364c54d58c735ff1 /src/test/fuzz | |
parent | e3154aacf444a29f9f5642b6c937e875ab9a2c13 (diff) |
util: Remove unused itostr
Diffstat (limited to 'src/test/fuzz')
-rw-r--r-- | src/test/fuzz/integer.cpp | 1 | ||||
-rw-r--r-- | src/test/fuzz/locale.cpp | 5 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/test/fuzz/integer.cpp b/src/test/fuzz/integer.cpp index 63b9296574..3ed99cd43f 100644 --- a/src/test/fuzz/integer.cpp +++ b/src/test/fuzz/integer.cpp @@ -97,7 +97,6 @@ void test_one_input(const std::vector<uint8_t>& buffer) (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 index c8288123e8..cdad2d6fbd 100644 --- a/src/test/fuzz/locale.cpp +++ b/src/test/fuzz/locale.cpp @@ -2,8 +2,8 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include <test/fuzz/fuzz.h> #include <test/fuzz/FuzzedDataProvider.h> +#include <test/fuzz/fuzz.h> #include <tinyformat.h> #include <util/strencodings.h> @@ -56,7 +56,6 @@ void test_one_input(const std::vector<uint8_t>& buffer) const int64_t random_int64 = fuzzed_data_provider.ConsumeIntegral<int64_t>(); const std::string i64tostr_without_locale = i64tostr(random_int64); const int32_t random_int32 = fuzzed_data_provider.ConsumeIntegral<int32_t>(); - const std::string itostr_without_locale = itostr(random_int32); const std::string strprintf_int_without_locale = strprintf("%d", random_int64); const double random_double = fuzzed_data_provider.ConsumeFloatingPoint<double>(); const std::string strprintf_double_without_locale = strprintf("%f", random_double); @@ -84,8 +83,6 @@ void test_one_input(const std::vector<uint8_t>& buffer) 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 = strprintf("%f", random_double); |