diff --git a/ircd/fmt.cc b/ircd/fmt.cc index bb4a4cab2..01b92a0e6 100644 --- a/ircd/fmt.cc +++ b/ircd/fmt.cc @@ -698,56 +698,6 @@ const }); } -/* - if(type == typeid(const char[])) - { - const auto &i(reinterpret_cast(ptr)); - if(!try_lex_cast(i)) - throw illegal("The string literal value for integer specifier is not a valid integer"); - - const auto len(std::min(max, strlen(i))); - memcpy(out, i, len); - out += len; - return true; - } - - if(type == typeid(const char *)) - { - const auto &i(*reinterpret_cast(ptr)); - if(!try_lex_cast(i)) - throw illegal("The character buffer for integer specifier is not a valid integer"); - - const auto len(std::min(max, strlen(i))); - memcpy(out, i, len); - out += len; - return true; - } - - if(type == typeid(const std::string)) - { - const auto &i(*reinterpret_cast(ptr)); - if(!try_lex_cast(i)) - throw illegal("The string argument for integer specifier is not a valid integer"); - - const auto len(std::min(max, i.size())); - memcpy(out, i.data(), len); - out += len; - return true; - } - - if(type == typeid(const string_view) || type == typeid(const std::string_view)) - { - const auto &i(*reinterpret_cast(ptr)); - if(!try_lex_cast(i)) - throw illegal("The string argument for integer specifier is not a valid integer"); - - const auto len(std::min(max, i.size())); - memcpy(out, i.data(), len); - out += len; - return true; - } -*/ - bool fmt::string_specifier::operator()(char *&out, const size_t &max,