chore: remove unused ILogOutputters:show

This commit is contained in:
sithlord48 2025-10-25 19:22:34 -04:00 committed by Nick Bolton
parent 023e8dc78e
commit 6b2c3c1844
5 changed files with 0 additions and 39 deletions

View file

@ -39,15 +39,6 @@ public:
*/ */
virtual void close() = 0; virtual void close() = 0;
//! Show the outputter
/*!
Causes the output to become visible. This generally only makes sense
for a logger in a graphical user interface. Other implementations
will do nothing. Iff \p showIfEmpty is \c false then the implementation
may optionally only show the log if it's not empty.
*/
virtual void show(bool showIfEmpty) = 0;
//! Write a message with level //! Write a message with level
/*! /*!
Writes \c message, which has the given \c level, to a log. Writes \c message, which has the given \c level, to a log.

View file

@ -31,11 +31,6 @@ void StopLogOutputter::close()
// do nothing // do nothing
} }
void StopLogOutputter::show(bool)
{
// do nothing
}
bool StopLogOutputter::write(LogLevel, const QString &) bool StopLogOutputter::write(LogLevel, const QString &)
{ {
return false; return false;
@ -55,11 +50,6 @@ void ConsoleLogOutputter::close()
// do nothing // do nothing
} }
void ConsoleLogOutputter::show(bool showIfEmpty)
{
// do nothing
}
bool ConsoleLogOutputter::write(LogLevel level, const QString &msg) bool ConsoleLogOutputter::write(LogLevel level, const QString &msg)
{ {
if ((level >= LogLevel::Fatal) && (level <= LogLevel::Warning)) if ((level >= LogLevel::Fatal) && (level <= LogLevel::Warning))
@ -89,11 +79,6 @@ void SystemLogOutputter::close()
ARCH->closeLog(); ARCH->closeLog();
} }
void SystemLogOutputter::show(bool showIfEmpty)
{
// do nothing
}
bool SystemLogOutputter::write(LogLevel level, const QString &msg) bool SystemLogOutputter::write(LogLevel level, const QString &msg)
{ {
ARCH->writeLog(level, msg); ARCH->writeLog(level, msg);
@ -168,8 +153,3 @@ void FileLogOutputter::close()
{ {
// do nothing // do nothing
} }
void FileLogOutputter::show(bool showIfEmpty)
{
// do nothing
}

View file

@ -27,7 +27,6 @@ public:
// ILogOutputter overrides // ILogOutputter overrides
void open(const QString &title) override; void open(const QString &title) override;
void close() override; void close() override;
void show(bool showIfEmpty) override;
bool write(LogLevel level, const QString &message) override; bool write(LogLevel level, const QString &message) override;
}; };
@ -45,7 +44,6 @@ public:
// ILogOutputter overrides // ILogOutputter overrides
void open(const QString &title) override; void open(const QString &title) override;
void close() override; void close() override;
void show(bool showIfEmpty) override;
bool write(LogLevel level, const QString &message) override; bool write(LogLevel level, const QString &message) override;
void flush() const; void flush() const;
}; };
@ -65,7 +63,6 @@ public:
// ILogOutputter overrides // ILogOutputter overrides
void open(const QString &title) override; void open(const QString &title) override;
void close() override; void close() override;
void show(bool showIfEmpty) override;
bool write(LogLevel level, const QString &message) override; bool write(LogLevel level, const QString &message) override;
void setLogFilename(const QString &title); void setLogFilename(const QString &title);
@ -87,7 +84,6 @@ public:
// ILogOutputter overrides // ILogOutputter overrides
void open(const QString &title) override; void open(const QString &title) override;
void close() override; void close() override;
void show(bool showIfEmpty) override;
bool write(LogLevel level, const QString &message) override; bool write(LogLevel level, const QString &message) override;
}; };

View file

@ -22,11 +22,6 @@ void MSWindowsDebugOutputter::close()
// do nothing // do nothing
} }
void MSWindowsDebugOutputter::show(bool showIfEmpty)
{
// do nothing
}
bool MSWindowsDebugOutputter::write(LogLevel level, const QString &msg) bool MSWindowsDebugOutputter::write(LogLevel level, const QString &msg)
{ {
std::wstring out = msg.toStdWString() + L"\n"; std::wstring out = msg.toStdWString() + L"\n";

View file

@ -23,7 +23,6 @@ public:
// ILogOutputter overrides // ILogOutputter overrides
void open(const QString &title) override; void open(const QString &title) override;
void close() override; void close() override;
void show(bool showIfEmpty) override;
bool write(LogLevel level, const QString &message) override; bool write(LogLevel level, const QString &message) override;
void flush(); void flush();
}; };