From 2a09f66a442454c255c9bb994a09c888b7a0167d Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 27 Jun 2021 20:32:01 +0300 Subject: [PATCH] Remove un needed functions and added override keyword --- include/spdlog/sinks/mongo_sink.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/include/spdlog/sinks/mongo_sink.h b/include/spdlog/sinks/mongo_sink.h index afcda1fd..c50b4d40 100644 --- a/include/spdlog/sinks/mongo_sink.h +++ b/include/spdlog/sinks/mongo_sink.h @@ -43,7 +43,7 @@ public: ~mongo_sink() { flush_(); } protected: - void sink_it_(const details::log_msg &msg) { + void sink_it_(const details::log_msg &msg) override { using bsoncxx::builder::stream::document; using bsoncxx::builder::stream::finalize; @@ -61,14 +61,7 @@ protected: } } - void flush_() {} - - void set_pattern_(const std::string &pattern) { - formatter_ = std::unique_ptr( - new spdlog::pattern_formatter(pattern, pattern_time_type::local, "")); - } - - void set_formatter_(std::unique_ptr sink_formatter) {} + void flush_() override {} private: static mongocxx::instance instance_;