mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Remove dead code
This commit is contained in:
@ -2121,8 +2121,7 @@ struct dynamic_format_specs : format_specs<Char> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Converts a character to ASCII. Returns '\0' on conversion failure.
|
// Converts a character to ASCII. Returns '\0' on conversion failure.
|
||||||
template <typename Char, FMT_ENABLE_IF(std::is_integral<Char>::value ||
|
template <typename Char, FMT_ENABLE_IF(std::is_integral<Char>::value)>
|
||||||
std::is_enum<Char>::value)>
|
|
||||||
constexpr auto to_ascii(Char c) -> char {
|
constexpr auto to_ascii(Char c) -> char {
|
||||||
return c <= 0xff ? static_cast<char>(c) : '\0';
|
return c <= 0xff ? static_cast<char>(c) : '\0';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user