diff --git a/src/app/core/controller.cc b/src/app/core/controller.cc index b8a91eb5..4c9c445d 100644 --- a/src/app/core/controller.cc +++ b/src/app/core/controller.cc @@ -5,7 +5,6 @@ #include "imgui/backends/imgui_impl_sdlrenderer2.h" #include "imgui/imgui.h" #include "imgui/imgui_internal.h" -#include #include @@ -306,7 +305,6 @@ void Controller::DoRender() const { } void Controller::OnExit() { - ImGuiTestEngine_Stop(engine); ImGui::DestroyContext(); if (flags()->kLoadAudioDevice) { SDL_PauseAudioDevice(audio_device_, 1); @@ -316,7 +314,6 @@ void Controller::OnExit() { ImGui_ImplSDLRenderer2_Shutdown(); ImGui_ImplSDL2_Shutdown(); ImGui::DestroyContext(); - ImGuiTestEngine_DestroyContext(engine); SDL_Quit(); } @@ -401,24 +398,6 @@ absl::Status Controller::CreateGuiContext() { return absl::OkStatus(); } -absl::Status Controller::CreateTestContext() { - // Initialize Test Engine - engine = ImGuiTestEngine_CreateContext(); - ImGuiTestEngineIO &test_io = ImGuiTestEngine_GetIO(engine); - test_io.ConfigVerboseLevel = ImGuiTestVerboseLevel_Info; - test_io.ConfigVerboseLevelOnError = ImGuiTestVerboseLevel_Debug; - - // Register your Tests - master_editor_.RegisterTests(engine); - - // Start test engine - ImGuiTestEngine_Start(engine, ImGui::GetCurrentContext()); - - // TODO: Setup with absl signal handler - // ImGuiTestEngine_InstallDefaultCrashHandler(); - - return absl::OkStatus(); -} absl::Status Controller::LoadFontFamilies() const { ImGuiIO &io = ImGui::GetIO(); diff --git a/src/app/core/controller.h b/src/app/core/controller.h index af42c229..a888fde5 100644 --- a/src/app/core/controller.h +++ b/src/app/core/controller.h @@ -56,7 +56,6 @@ class Controller : public ExperimentFlags { absl::Status CreateSDL_Window(); absl::Status CreateRenderer(); absl::Status CreateGuiContext(); - absl::Status CreateTestContext(); absl::Status LoadFontFamilies() const; absl::Status LoadAudioDevice(); void CloseWindow() { active_ = false; } @@ -66,7 +65,6 @@ class Controller : public ExperimentFlags { bool active_; int audio_frequency_ = 48000; int16_t *audio_buffer_; - ImGuiTestEngine *engine; editor::MasterEditor master_editor_; SDL_AudioDeviceID audio_device_; std::shared_ptr window_;