From 0d944992fb7b81faf1fb2eeec19673d1d48a96d7 Mon Sep 17 00:00:00 2001 From: Nathan Date: Thu, 3 Apr 2025 15:44:54 -0500 Subject: [PATCH] remove debug print statements --- include/utils/App/App.h | 3 --- include/utils/GuiModule/GuiModule.h | 4 ---- include/utils/Window/WindowGLFW/WindowGLFW.h | 3 +-- modules/WindowModule/src/WindowModule.cpp | 2 -- modules/examples/GuiModules/TestImgui/src/TestImgui.cpp | 7 ------- src/example_apps/MinimalApp/MinimalApp.cpp | 1 - src/example_apps/MinimalApp/MinimalApp.h | 1 - 7 files changed, 1 insertion(+), 20 deletions(-) diff --git a/include/utils/App/App.h b/include/utils/App/App.h index 857af87..265d45b 100644 --- a/include/utils/App/App.h +++ b/include/utils/App/App.h @@ -139,9 +139,6 @@ namespace Archimedes { runOrder.insert(roInsert, m->getName()); - for(auto s : runOrder) - std::cout << s << std::endl; - return m; } diff --git a/include/utils/GuiModule/GuiModule.h b/include/utils/GuiModule/GuiModule.h index 71ba8a7..9fc7216 100644 --- a/include/utils/GuiModule/GuiModule.h +++ b/include/utils/GuiModule/GuiModule.h @@ -16,15 +16,11 @@ namespace Archimedes { typedef GuiModule* create_t(void*, App*); GuiModule(void* h, App* a) : Module(h, a) { - //wm = new WindowModule(nullptr, a); deps["WindowModule"] = new WindowModule(nullptr, a); } virtual ~GuiModule() {} virtual void onLoad() = 0; virtual void run() = 0; - - protected: - //WindowModule* wm; }; } diff --git a/include/utils/Window/WindowGLFW/WindowGLFW.h b/include/utils/Window/WindowGLFW/WindowGLFW.h index d54c75f..f8b92fc 100644 --- a/include/utils/Window/WindowGLFW/WindowGLFW.h +++ b/include/utils/Window/WindowGLFW/WindowGLFW.h @@ -16,7 +16,7 @@ namespace Archimedes { glfwSetErrorCallback([](int e, const char* m){ std::cout << "GLFW Error: " << m << std::endl; - }); + }); if(!glfwInit()) { std::cout << "glfwInit failed!\n"; @@ -28,7 +28,6 @@ namespace Archimedes { glfwTerminate(); std::abort(); } - std::cout << "Window Created!\n"; glfwMakeContextCurrent(w); glfwSwapInterval(1); diff --git a/modules/WindowModule/src/WindowModule.cpp b/modules/WindowModule/src/WindowModule.cpp index 48e4b20..55b108d 100644 --- a/modules/WindowModule/src/WindowModule.cpp +++ b/modules/WindowModule/src/WindowModule.cpp @@ -23,8 +23,6 @@ void WindowModule::onLoad() { data["window"] = window->getWindowImpl().getWindow(); data["renderCmdList"] = &renderer->getCmdList(); - - std::cout << "WindowModule GLFWwindow*: " << std::any_castgetWindowImpl().getWindow())>(data["window"]) << std::endl; } void WindowModule::run() { diff --git a/modules/examples/GuiModules/TestImgui/src/TestImgui.cpp b/modules/examples/GuiModules/TestImgui/src/TestImgui.cpp index 8dd352d..163005e 100644 --- a/modules/examples/GuiModules/TestImgui/src/TestImgui.cpp +++ b/modules/examples/GuiModules/TestImgui/src/TestImgui.cpp @@ -43,22 +43,15 @@ void TestImgui::onLoad() { ImGui::StyleColorsDark(); //ImGui::StyleColorsLight(); - std::cout << "init backends\n"; // Setup Platform/Renderer backends - std::cout << wm->getName() << std::endl; GLFWwindow* w = std::any_cast(wm->getData("window")); - std::cout << "TestImgui GLFWwindow*: " << w << std::endl; - if(!ImGui_ImplGlfw_InitForOpenGL(w, true)) std::cout << "GLFWImpl failed\n"; if(!ImGui_ImplOpenGL3_Init("#version 330")) { std::cout << "ImGui_ImplOpenGL3_Init failed!\n" << std::endl; } - std::cout << "register renderCmd\n"; - - std::list* cmdList = std::any_cast*>(wm->getData("renderCmdList")); diff --git a/src/example_apps/MinimalApp/MinimalApp.cpp b/src/example_apps/MinimalApp/MinimalApp.cpp index b8a939f..f061630 100644 --- a/src/example_apps/MinimalApp/MinimalApp.cpp +++ b/src/example_apps/MinimalApp/MinimalApp.cpp @@ -3,7 +3,6 @@ void MinimalApp::run() { for(std::string m : runOrder) { - std::cout << "onLoad module: " << m << std::endl; modules[m]->onLoad(); } diff --git a/src/example_apps/MinimalApp/MinimalApp.h b/src/example_apps/MinimalApp/MinimalApp.h index 18cdd65..93ed6f7 100644 --- a/src/example_apps/MinimalApp/MinimalApp.h +++ b/src/example_apps/MinimalApp/MinimalApp.h @@ -14,7 +14,6 @@ class MinimalApp : public Archimedes::App { void handleArgs(const int& argc, char* argv[]) { if(argc > 1) { for(int i = 1; i < argc; i++) { - std::cout << "Attempting to load: " << argv[i] << std::endl; load(dynamicLoad(argv[i])); } } else {