diff --git a/CMakeLists.txt b/CMakeLists.txt index f996440..3030e2b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -204,7 +204,7 @@ set(REQUIRED_ICONS ) # find c++utilities -find_package(c++utilities 4.8.0 REQUIRED) +find_package(c++utilities 4.10.0 REQUIRED) use_cpp_utilities() include(BasicConfig) diff --git a/cli/helper.cpp b/cli/helper.cpp index bd18f41..19ecfae 100644 --- a/cli/helper.cpp +++ b/cli/helper.cpp @@ -626,28 +626,4 @@ void finalizeLog() } } -std::ostream &operator<< (std::ostream &stream, Phrases phrase) -{ - using namespace EscapeCodes; - switch(phrase) { - case Phrases::Error: - setStyle(stream, Color::Red, ColorContext::Foreground, TextAttribute::Bold); - stream << "Error: "; - setStyle(stream, TextAttribute::Reset); - setStyle(stream, TextAttribute::Bold); - break; - case Phrases::Warning: - setStyle(stream, Color::Yellow, ColorContext::Foreground, TextAttribute::Bold); - stream << "Warning: "; - setStyle(stream, TextAttribute::Reset); - setStyle(stream, TextAttribute::Bold); - break; - case Phrases::End: - setStyle(stream, TextAttribute::Reset); - stream << '\n'; - break; - } - return stream; -} - } diff --git a/cli/helper.h b/cli/helper.h index f5bd157..5e45f17 100644 --- a/cli/helper.h +++ b/cli/helper.h @@ -297,13 +297,6 @@ extern bool logLineFinalized; void logStatus(const StatusProvider &statusProvider); void finalizeLog(); -enum class Phrases { - Error, - Warning, - End, -}; -std::ostream &operator<<(std::ostream &stream, Phrases phrase); - } #endif // CLI_HELPER