Skip to content

Commit 91e5bfe

Browse files
Removed unused include & defined CoreClearBuilder class.
1 parent bf16534 commit 91e5bfe

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

Source/GUI/Include/ClearButton.hpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include <QSettings>
99
#include "../../Lib_Memory/Include/Memory.hpp"
1010
#include "../../Core/Include/CoreClearCache.hpp"
11-
#include "../../Listener/Include/ListenerClearCache.hpp"
1211
#include "../../Utils/Include/Namespace_Macro.hpp"
1312
#include "../Toolkit/Include/MainWindow_Components.hpp"
1413

@@ -19,16 +18,14 @@
1918

2019
using ZClipboard::GUI::TableView;
2120
using ZClipboard::Lib_Memory::PtrUnique;
22-
using ZClipboard::Core::ClearCoreBuilder;
23-
using ZClipboard::Listener::ClearCacheListener;
21+
using ZClipboard::Core::CoreClearBuilder;
2422
using ZClipboard::GUI::Toolkit::MainWindowComponentsManager;
2523

2624
GUI_NAMESPACE
2725

2826
class ClearButton {
2927
private:
30-
ClearCoreBuilder BuilderCore;
31-
ClearCacheListener BuilderFunc;
28+
PtrUnique<CoreClearBuilder> BuilderCore;
3229

3330
private:
3431
using ComponentsManager = MainWindowComponentsManager;
@@ -46,7 +43,6 @@ GUI_NAMESPACE
4643
private:
4744
void __LOGGING_ALL_OBJECTS__(QPushButton *clearButton) {
4845
LogContext{}.LogDebug(&BuilderCore);
49-
LogContext{}.LogDebug(&BuilderFunc);
5046
LogContext{}.LogDebug(&settings);
5147
LogContext{}.LogDebug(&clearButton);
5248
}

0 commit comments

Comments
 (0)