refactor: Log remove unneeded includes
This commit is contained in:
parent
fc6e9f1447
commit
6ab1579d38
23 changed files with 10 additions and 26 deletions
|
|
@ -6,10 +6,8 @@
|
|||
*/
|
||||
|
||||
#include "base/Log.h"
|
||||
#include "arch/Arch.h"
|
||||
#include "base/LogLevel.h"
|
||||
#include "base/LogOutputters.h"
|
||||
#include "common/Common.h"
|
||||
#include "common/Constants.h"
|
||||
|
||||
#include <cstdarg>
|
||||
|
|
|
|||
|
|
@ -7,13 +7,13 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "arch/Arch.h"
|
||||
#include "arch/IArchMultithread.h"
|
||||
#include "LogLevel.h"
|
||||
|
||||
#include <list>
|
||||
#include <mutex>
|
||||
|
||||
#include <QString>
|
||||
|
||||
#define CLOG (Log::getInstance())
|
||||
#define BYE "\nTry `%s --help' for more information."
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "deskflow/DaemonApp.h"
|
||||
|
||||
#include "arch/Arch.h"
|
||||
#include "base/IEventQueue.h"
|
||||
#include "base/Log.h"
|
||||
#include "base/LogOutputters.h"
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include "deskflow/win32/AppUtilWindows.h"
|
||||
|
||||
#include "arch/Arch.h"
|
||||
#include "arch/ArchException.h"
|
||||
#include "arch/win32/ArchMiscWindows.h"
|
||||
#include "arch/win32/XArchWindows.h"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include "platform/MSWindowsDesks.h"
|
||||
|
||||
#include "arch/Arch.h"
|
||||
#include "base/IEventQueue.h"
|
||||
#include "base/IJob.h"
|
||||
#include "base/Log.h"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include "platform/OSXScreen.h"
|
||||
|
||||
#include "arch/Arch.h"
|
||||
#include "arch/ArchException.h"
|
||||
#include "base/EventQueue.h"
|
||||
#include "base/IEventQueue.h"
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
#include "server/ClientListener.h"
|
||||
#include "server/Server.h"
|
||||
|
||||
#include "arch/Arch.h"
|
||||
#include "base/IEventQueue.h"
|
||||
#include "base/Log.h"
|
||||
#include "deskflow/PacketStreamFilter.h"
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ QString sanitizeBuffer(const std::stringstream &in)
|
|||
|
||||
void LogTests::initTestCase()
|
||||
{
|
||||
m_arch.init();
|
||||
m_log.setFilter(LogLevel::Debug2);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,6 +23,5 @@ private Q_SLOTS:
|
|||
void printErrWithFileAndLine();
|
||||
|
||||
private:
|
||||
Arch m_arch;
|
||||
Log m_log;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
void UnicodeTests::initTestCase()
|
||||
{
|
||||
m_arch.init();
|
||||
m_log.setFilter(LogLevel::Debug2);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,5 @@ private Q_SLOTS:
|
|||
void UTF16ToUTF8();
|
||||
|
||||
private:
|
||||
Arch m_arch;
|
||||
Log m_log;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
void ClipboardTests::initTestCase()
|
||||
{
|
||||
m_arch.init();
|
||||
m_log.setFilter(LogLevel::Debug2);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,5 @@ private Q_SLOTS:
|
|||
private:
|
||||
const std::string kTestString1 = "deskflow rocks";
|
||||
const std::string kTestString2 = "String 020";
|
||||
Arch m_arch;
|
||||
Log m_log;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
||||
*/
|
||||
|
||||
#include "base/Log.h"
|
||||
|
||||
#include <QTest>
|
||||
|
||||
class IKeyStateTests : public QObject
|
||||
|
|
@ -13,8 +11,4 @@ class IKeyStateTests : public QObject
|
|||
Q_OBJECT
|
||||
private Q_SLOTS:
|
||||
void allocDestination();
|
||||
|
||||
private:
|
||||
Arch m_arch;
|
||||
Log m_log;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ private Q_SLOTS:
|
|||
void mapkey();
|
||||
|
||||
private:
|
||||
Arch m_arch;
|
||||
Log m_log;
|
||||
};
|
||||
} // namespace deskflow
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
void LanguageManagerTests::initTestCase()
|
||||
{
|
||||
m_arch.init();
|
||||
m_log.setFilter(LogLevel::Debug2);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,5 @@ private Q_SLOTS:
|
|||
void languageInstall();
|
||||
|
||||
private:
|
||||
Arch m_arch;
|
||||
Log m_log;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ private Q_SLOTS:
|
|||
void convertLayouts();
|
||||
|
||||
private:
|
||||
Arch m_arch;
|
||||
Log m_log;
|
||||
const QString kTestDir = "tmp/test";
|
||||
const QString kTestCorrectFile = "tmp/test/correctEvdev.xml";
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
void MSWindowsClipboardTests::initTestCase()
|
||||
{
|
||||
m_arch.init();
|
||||
m_log.setFilter(LogLevel::Debug2);
|
||||
|
||||
MSWindowsClipboard clipboard(NULL);
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ private Q_SLOTS:
|
|||
void isOwnedByDeskflow();
|
||||
|
||||
private:
|
||||
Arch m_arch;
|
||||
Log m_log;
|
||||
const std::string m_testString = "deskflow test string";
|
||||
const std::string m_testString2 = "Another String";
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ private Q_SLOTS:
|
|||
void formatConvert_UTF8();
|
||||
|
||||
private:
|
||||
Arch m_arch;
|
||||
Log m_log;
|
||||
const std::string m_testString = "deskflow test string";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
#include "base/Log.h"
|
||||
|
||||
#include "arch/Arch.h"
|
||||
#include "platform/OSXKeyState.h"
|
||||
|
||||
#include <QTest>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ private Q_SLOTS:
|
|||
void singleFormat();
|
||||
#endif
|
||||
private:
|
||||
Arch m_arch;
|
||||
Log m_log;
|
||||
#if !WINAPI_LIBEI && !WINAPI_PORTAL
|
||||
const std::string m_testString = "deskflow test string";
|
||||
|
|
|
|||
Loading…
Reference in a new issue