From 0fa09f6af46aabe9e9e879a39bfb9df6f9f14c73 Mon Sep 17 00:00:00 2001 From: gabime Date: Tue, 27 Aug 2019 16:39:18 +0300 Subject: [PATCH] Removed dead clode --- include/spdlog/logger.h | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index a43b3e8f..3b99615e 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -228,26 +228,9 @@ public: #ifndef _WIN32 #error SPDLOG_WCHAR_TO_UTF8_SUPPORT only supported on windows #else + template - void force_log(source_loc loc, level::level_enum lvl, wstring_view_t fmt, const Args &... args) - { - try - { - // format to wmemory_buffer and convert to utf8 - fmt::wmemory_buffer wbuf; - fmt::format_to(wbuf, fmt, args...); - - fmt::memory_buffer buf; - details::os::wstr_to_utf8buf(wstring_view_t(wbuf.data(), wbuf.size()), buf); - - details::log_msg log_msg(loc, name_, lvl, string_view_t(buf.data(), buf.size())); - sink_it_(log_msg); - } - SPDLOG_LOGGER_CATCH() - } - - template - void log(source_loc loc, level::level_enum lvl, wstring_view_t fmt, const Args &... args) + void log(source_loc loc, level::level_enum lvl, wstring_view_t fmt, const Args &... args) { auto level_enabled = should_log(lvl); if (!level_enabled && !tracer_)