From d3879c674a920354bea6e73d390734dd8806a6e7 Mon Sep 17 00:00:00 2001 From: SweetId <2630750+SweetId@users.noreply.github.com> Date: Mon, 16 Oct 2023 21:16:04 -0400 Subject: [PATCH] cleanup dead code --- .../Core/Application/BaseApplication.hpp | 2 ++ include/NazaraEditor/Editor/UI/MainWindow.hpp | 13 ------- src/NazaraEditor/Editor/UI/MainWindow.cpp | 35 ------------------- 3 files changed, 2 insertions(+), 48 deletions(-) diff --git a/include/NazaraEditor/Core/Application/BaseApplication.hpp b/include/NazaraEditor/Core/Application/BaseApplication.hpp index ad39178..b4587d8 100644 --- a/include/NazaraEditor/Core/Application/BaseApplication.hpp +++ b/include/NazaraEditor/Core/Application/BaseApplication.hpp @@ -32,6 +32,7 @@ namespace Nz // Editor events NazaraSignal(OnActionRegistered, const EditorAction::Properties&); + EditorBaseApplication(); virtual ~EditorBaseApplication(); @@ -64,6 +65,7 @@ namespace Nz private: static EditorBaseApplication* s_instance; + std::unique_ptr m_windowSwapchain; std::vector> m_windows; diff --git a/include/NazaraEditor/Editor/UI/MainWindow.hpp b/include/NazaraEditor/Editor/UI/MainWindow.hpp index 4e4d611..742db87 100644 --- a/include/NazaraEditor/Editor/UI/MainWindow.hpp +++ b/include/NazaraEditor/Editor/UI/MainWindow.hpp @@ -7,18 +7,5 @@ namespace NzEditor { public: MainWindow(Nz::EditorBaseApplication* app); - - bool Quit(); - - bool NewLevel(); - bool OpenLevel(); - bool SaveLevel(); - - bool NewProject(); - bool OpenProject(); - bool SaveProject(); - - protected: - void BuildMenuBar(); }; } \ No newline at end of file diff --git a/src/NazaraEditor/Editor/UI/MainWindow.cpp b/src/NazaraEditor/Editor/UI/MainWindow.cpp index 142aec8..96ad79d 100644 --- a/src/NazaraEditor/Editor/UI/MainWindow.cpp +++ b/src/NazaraEditor/Editor/UI/MainWindow.cpp @@ -6,39 +6,4 @@ namespace NzEditor : Nz::EditorMainWindow(app, "MainWindow", { "General", "Plugins" }) { } - - bool MainWindow::Quit() - { - return true; - } - - bool MainWindow::NewLevel() - { - return true; - } - - bool MainWindow::OpenLevel() - { - return true; - } - - bool MainWindow::SaveLevel() - { - return true; - } - - bool MainWindow::NewProject() - { - return true; - } - - bool MainWindow::OpenProject() - { - return true; - } - - bool MainWindow::SaveProject() - { - return true; - } } \ No newline at end of file