From 8338a48c5ba8c70d504bf1cc91f2a512ebc5b8b5 Mon Sep 17 00:00:00 2001 From: Charles Milette Date: Tue, 26 Apr 2022 23:27:55 -0400 Subject: [PATCH] Remove fmt_helper::to_string --- include/spdlog/details/fmt_helper.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/include/spdlog/details/fmt_helper.h b/include/spdlog/details/fmt_helper.h index 9ed30d0e..1a60bc0d 100644 --- a/include/spdlog/details/fmt_helper.h +++ b/include/spdlog/details/fmt_helper.h @@ -23,20 +23,6 @@ inline spdlog::string_view_t to_string_view(const memory_buf_t &buf) SPDLOG_NOEX return spdlog::string_view_t{buf.data(), buf.size()}; } -#ifdef SPDLOG_USE_STD_FORMAT -template -std::basic_string to_string(std::basic_string &&buf) -{ - return std::move(buf); -} -#else -template -std::basic_string to_string(fmt::basic_memory_buffer &&buf) -{ - return fmt::to_string(buf); -} -#endif - inline void append_string_view(spdlog::string_view_t view, memory_buf_t &dest) { auto *buf_ptr = view.data();