diff options
-rw-r--r-- | .suppress.cppcheck | 2 | ||||
-rw-r--r-- | include/ingen/Log.hpp | 3 | ||||
-rw-r--r-- | src/ClashAvoider.cpp | 6 | ||||
-rw-r--r-- | src/Log.cpp | 9 |
4 files changed, 0 insertions, 20 deletions
diff --git a/.suppress.cppcheck b/.suppress.cppcheck index a92b4f94..75896f7e 100644 --- a/.suppress.cppcheck +++ b/.suppress.cppcheck @@ -15,9 +15,7 @@ nullPointerArithmetic passedByValue rethrowNoCurrentException shadowFunction -unreadVariable unsafeClassCanLeak -unusedPrivateFunction useStlAlgorithm uselessCallsSubstr uselessOverride diff --git a/include/ingen/Log.hpp b/include/ingen/Log.hpp index 8d1b420c..572e7b81 100644 --- a/include/ingen/Log.hpp +++ b/include/ingen/Log.hpp @@ -25,7 +25,6 @@ #include "lv2/urid/urid.h" #include <cstdarg> -#include <cstdio> #include <functional> #include <memory> #include <string> @@ -95,8 +94,6 @@ public: void set_sink(Sink s) { _sink = std::move(s); } private: - void print(FILE* stream, const std::string& msg) const; - LV2_Log_Log* _log; URIs& _uris; Sink _sink; diff --git a/src/ClashAvoider.cpp b/src/ClashAvoider.cpp index b782bcc7..251b8a33 100644 --- a/src/ClashAvoider.cpp +++ b/src/ClashAvoider.cpp @@ -98,12 +98,6 @@ ClashAvoider::map_path(const raul::Path& in) auto o = _offsets.find(base_path); if (o != _offsets.end()) { offset = ++o->second; - } else { - std::string parent_str = in.parent().base(); - parent_str = parent_str.substr(0, parent_str.find_last_of('/')); - if (parent_str.empty()) { - parent_str = "/"; - } } if (offset == 0) { diff --git a/src/Log.cpp b/src/Log.cpp index e17e1555..1c5b64d9 100644 --- a/src/Log.cpp +++ b/src/Log.cpp @@ -72,15 +72,6 @@ Log::trace(const std::string& msg) vtprintf(_uris.log_Trace, msg.c_str(), args); } -void -Log::print(FILE* stream, const std::string& msg) const -{ - fprintf(stream, "%s", msg.c_str()); - if (_flush) { - fflush(stdout); - } -} - int Log::vtprintf(LV2_URID type, const char* fmt, va_list args) { |