From d372d6ab0a447ce2be71fa61b256b503efc32088 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Fri, 20 Jan 2023 12:02:13 -0800 Subject: [PATCH] Remove unused variables --- include/boost/charconv/to_chars.hpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/boost/charconv/to_chars.hpp b/include/boost/charconv/to_chars.hpp index c0f7279..f6a4448 100644 --- a/include/boost/charconv/to_chars.hpp +++ b/include/boost/charconv/to_chars.hpp @@ -145,15 +145,10 @@ BOOST_CXX14_CONSTEXPR to_chars_result to_chars_integer_impl(char* first, char* l static_cast(value) <= (std::numeric_limits::max)()) { const auto converted_value = static_cast(value); - const auto num_sig_chars = num_digits(converted_value); const auto x = static_cast(converted_value / UINT64_C(10000000000)); const auto y = static_cast(converted_value % UINT64_C(10000000000)); const int first_value_chars = num_digits(x); - const int second_value_chars = num_digits(y); - - // TODO: Remove when done with debugging - assert(first_value_chars + second_value_chars <= num_sig_chars); decompose32(x, buffer);