chore: remove unused ARCH->showLog
This commit is contained in:
parent
b5c188abbc
commit
023e8dc78e
6 changed files with 1 additions and 22 deletions
|
|
@ -37,15 +37,6 @@ public:
|
||||||
*/
|
*/
|
||||||
virtual void closeLog() = 0;
|
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
|
//! Write to the log
|
||||||
/*!
|
/*!
|
||||||
Writes the given string to the log with the given level.
|
Writes the given string to the log with the given level.
|
||||||
|
|
|
||||||
|
|
@ -23,11 +23,6 @@ void ArchLogUnix::closeLog()
|
||||||
closelog();
|
closelog();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ArchLogUnix::showLog(bool)
|
|
||||||
{
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
void ArchLogUnix::writeLog(LogLevel level, const QString &msg)
|
void ArchLogUnix::writeLog(LogLevel level, const QString &msg)
|
||||||
{
|
{
|
||||||
// convert level
|
// convert level
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,5 @@ public:
|
||||||
// IArchLog overrides
|
// IArchLog overrides
|
||||||
void openLog(const QString &name) override;
|
void openLog(const QString &name) override;
|
||||||
void closeLog() override;
|
void closeLog() override;
|
||||||
void showLog(bool) override;
|
|
||||||
void writeLog(LogLevel, const QString &) 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)
|
void ArchLogWindows::writeLog(LogLevel level, const QString &msg)
|
||||||
{
|
{
|
||||||
if (m_eventLog != nullptr) {
|
if (m_eventLog != nullptr) {
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ public:
|
||||||
// IArchLog overrides
|
// IArchLog overrides
|
||||||
void openLog(const QString &name) override;
|
void openLog(const QString &name) override;
|
||||||
void closeLog() override;
|
void closeLog() override;
|
||||||
void showLog(bool showIfEmpty) override;
|
|
||||||
void writeLog(LogLevel, const QString &) override;
|
void writeLog(LogLevel, const QString &) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ void SystemLogOutputter::close()
|
||||||
|
|
||||||
void SystemLogOutputter::show(bool showIfEmpty)
|
void SystemLogOutputter::show(bool showIfEmpty)
|
||||||
{
|
{
|
||||||
ARCH->showLog(showIfEmpty);
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SystemLogOutputter::write(LogLevel level, const QString &msg)
|
bool SystemLogOutputter::write(LogLevel level, const QString &msg)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue