aboutsummaryrefslogtreecommitdiff
path: root/src/openvic/Logger.cpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-05-22 11:36:23 +0200
committer Hop311 <hop3114@gmail.com>2023-05-22 11:36:23 +0200
commit7874702f30d5855319faf197b10aed31f07f5e27 (patch)
tree136a221eb5e7c895c8219778b3d206f2ed9e8e7f /src/openvic/Logger.cpp
parent212d591c31f4200b06d38e98b23c5c2bccde1772 (diff)
BMP palette parser + Logger macro
Diffstat (limited to 'src/openvic/Logger.cpp')
-rw-r--r--src/openvic/Logger.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/openvic/Logger.cpp b/src/openvic/Logger.cpp
deleted file mode 100644
index f93b8f1..0000000
--- a/src/openvic/Logger.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-#include "Logger.hpp"
-
-#include <iostream>
-
-using namespace OpenVic;
-
-Logger::log_func_t Logger::info_func = [](std::string&& str) { std::cout << str; };
-Logger::log_func_t Logger::error_func = [](std::string&& str) { std::cerr << str; };
-
-char const* Logger::get_filename(char const* filepath) {
- if (filepath == nullptr) return nullptr;
- char const* last_slash = filepath;
- while (*filepath != '\0') {
- if (*filepath == '\\' || *filepath == '/') last_slash = filepath + 1;
- filepath++;
- }
- return last_slash;
-}
-
-void Logger::set_info_func(log_func_t log_func) {
- info_func = log_func;
-}
-
-void Logger::set_error_func(log_func_t log_func) {
- error_func = log_func;
-}