From 65d02e495e25b6440195481c4e573e65ccf5c939 Mon Sep 17 00:00:00 2001 From: gabime Date: Thu, 5 Sep 2019 19:50:00 +0300 Subject: [PATCH] Reverted the version() function --- example/example.cpp | 2 +- include/spdlog/spdlog-inl.h | 5 ----- include/spdlog/spdlog.h | 4 ---- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/example/example.cpp b/example/example.cpp index b2d9e3f6..2a18677a 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -22,7 +22,7 @@ void syslog_example(); int main(int, char *[]) { - spdlog::info("Welcome to spdlog version {} !", spdlog::version()); + spdlog::info("Welcome to spdlog version {}.{}.{} !", SPDLOG_VER_MAJOR, SPDLOG_VER_MINOR, SPDLOG_VER_PATCH); spdlog::warn("Easy padding in numbers like {:08d}", 12); spdlog::critical("Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}", 42); spdlog::info("Support for floats {:03.2f}", 1.23456); diff --git a/include/spdlog/spdlog-inl.h b/include/spdlog/spdlog-inl.h index 5b408678..bbfb6e24 100644 --- a/include/spdlog/spdlog-inl.h +++ b/include/spdlog/spdlog-inl.h @@ -112,9 +112,4 @@ SPDLOG_INLINE void set_default_logger(std::shared_ptr default_lo details::registry::instance().set_default_logger(std::move(default_logger)); } -SPDLOG_INLINE std::string version() -{ - return fmt::format("{}.{}.{}", SPDLOG_VER_MAJOR, SPDLOG_VER_MINOR, SPDLOG_VER_PATCH); -} - } // namespace spdlog \ No newline at end of file diff --git a/include/spdlog/spdlog.h b/include/spdlog/spdlog.h index 96b6aabf..ccedb28b 100644 --- a/include/spdlog/spdlog.h +++ b/include/spdlog/spdlog.h @@ -103,10 +103,6 @@ void shutdown(); // Automatic registration of loggers when using spdlog::create() or spdlog::create_async void set_automatic_registration(bool automatic_registation); -// return spdlog version -std::string version(); - - // API for using default logger (stdout_color_mt), // e.g: spdlog::info("Message {}", 1); //