chore: remove unused ARCH->showLog
This commit is contained in:
@ -37,15 +37,6 @@ public:
|
||||
*/
|
||||
virtual void closeLog() = 0;
|
||||
|
||||
//! Show the log
|
||||
/*!
|
||||
Causes the log to become visible. This generally only makes sense
|
||||
for a log 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 showLog(bool showIfEmpty) = 0;
|
||||
|
||||
//! Write to the log
|
||||
/*!
|
||||
Writes the given string to the log with the given level.
|
||||
|
||||
@ -23,11 +23,6 @@ void ArchLogUnix::closeLog()
|
||||
closelog();
|
||||
}
|
||||
|
||||
void ArchLogUnix::showLog(bool)
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
||||
void ArchLogUnix::writeLog(LogLevel level, const QString &msg)
|
||||
{
|
||||
// convert level
|
||||
|
||||
@ -21,6 +21,5 @@ public:
|
||||
// IArchLog overrides
|
||||
void openLog(const QString &name) override;
|
||||
void closeLog() override;
|
||||
void showLog(bool) override;
|
||||
void writeLog(LogLevel, const QString &) override;
|
||||
};
|
||||
|
||||
@ -33,11 +33,6 @@ void ArchLogWindows::closeLog()
|
||||
}
|
||||
}
|
||||
|
||||
void ArchLogWindows::showLog(bool)
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
||||
void ArchLogWindows::writeLog(LogLevel level, const QString &msg)
|
||||
{
|
||||
if (m_eventLog != nullptr) {
|
||||
|
||||
@ -24,7 +24,6 @@ public:
|
||||
// IArchLog overrides
|
||||
void openLog(const QString &name) override;
|
||||
void closeLog() override;
|
||||
void showLog(bool showIfEmpty) override;
|
||||
void writeLog(LogLevel, const QString &) override;
|
||||
|
||||
private:
|
||||
|
||||
@ -91,7 +91,7 @@ void SystemLogOutputter::close()
|
||||
|
||||
void SystemLogOutputter::show(bool showIfEmpty)
|
||||
{
|
||||
ARCH->showLog(showIfEmpty);
|
||||
// do nothing
|
||||
}
|
||||
|
||||
bool SystemLogOutputter::write(LogLevel level, const QString &msg)
|
||||
|
||||
Reference in New Issue
Block a user