aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/locale.cpp
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/test/fuzz/locale.cpp
parent1bc8e8eae2dc4b47ef67afc6880ea48b8e84a086 (diff)
downloadbitcoin-71e0f07e9c5f0aef532b85c04807dcbedd04e0af.tar.xz
util: remove unused c-string variant of atoi64()
Diffstat (limited to 'src/test/fuzz/locale.cpp')
-rw-r--r--src/test/fuzz/locale.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/test/fuzz/locale.cpp b/src/test/fuzz/locale.cpp
index 3597f51e51..2b181c6da1 100644
--- a/src/test/fuzz/locale.cpp
+++ b/src/test/fuzz/locale.cpp
@@ -52,7 +52,6 @@ void test_one_input(const std::vector<uint8_t>& buffer)
const bool parseint64_without_locale = ParseInt64(random_string, &parseint64_out_without_locale);
const int64_t atoi64_without_locale = atoi64(random_string);
const int atoi_without_locale = atoi(random_string);
- const int64_t atoi64c_without_locale = atoi64(random_string.c_str());
const int64_t random_int64 = fuzzed_data_provider.ConsumeIntegral<int64_t>();
const std::string tostring_without_locale = ToString(random_int64);
// The variable `random_int32` is no longer used, but the harness still needs to
@@ -80,8 +79,6 @@ void test_one_input(const std::vector<uint8_t>& buffer)
}
const int64_t atoi64_with_locale = atoi64(random_string);
assert(atoi64_without_locale == atoi64_with_locale);
- const int64_t atoi64c_with_locale = atoi64(random_string.c_str());
- assert(atoi64c_without_locale == atoi64c_with_locale);
const int atoi_with_locale = atoi(random_string);
assert(atoi_without_locale == atoi_with_locale);
const std::string tostring_with_locale = ToString(random_int64);