From bee495c97f15f6ca9012756e1e0050bf2e69c648 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 4 Jan 2024 09:40:30 -0800 Subject: [PATCH] Remove dead code --- include/fmt/core.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 53026d47557e..16cd51710838 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2121,8 +2121,7 @@ struct dynamic_format_specs : format_specs { }; // Converts a character to ASCII. Returns '\0' on conversion failure. -template ::value || - std::is_enum::value)> +template ::value)> constexpr auto to_ascii(Char c) -> char { return c <= 0xff ? static_cast(c) : '\0'; }