From 5ff56759ee27e83e1f941fa2d45f2f606c8b3620 Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Fri, 11 Sep 2015 06:45:42 +0200 Subject: [PATCH] Remove unused code in testbed application --- testbed/src/Gui.h | 1 - testbed/src/TestbedApplication.cpp | 19 ------------------- testbed/src/TestbedApplication.h | 6 ------ 3 files changed, 26 deletions(-) diff --git a/testbed/src/Gui.h b/testbed/src/Gui.h index 19d5dc07..2bf6ae43 100644 --- a/testbed/src/Gui.h +++ b/testbed/src/Gui.h @@ -34,7 +34,6 @@ #include "openglframework.h" // Constants -const float GUI_SCALING = 2.0f; const int LEFT_PANE_WIDTH = 300; const int LEFT_PANE_HEADER_HEIGHT = 90; const double TIME_INTERVAL_DISPLAY_PROFILING_INFO = 0.3; diff --git a/testbed/src/TestbedApplication.cpp b/testbed/src/TestbedApplication.cpp index fc958671..38f9cc71 100644 --- a/testbed/src/TestbedApplication.cpp +++ b/testbed/src/TestbedApplication.cpp @@ -396,25 +396,6 @@ void TestbedApplication::error_callback(int error, const char* description) { fputs(description, stderr); } -// Display the GUI -void TestbedApplication::displayGUI() { - - // Display the FPS - displayFPS(); -} - -// Display the FPS -void TestbedApplication::displayFPS() { - - /* - std::stringstream ss; - ss << mFPS; - std::string fpsString = ss.str(); - std::string windowTitle = mWindowTitle + " | FPS : " + fpsString; - glfwSetWindowTitle(mWindow, windowTitle.c_str()); - */ -} - // Callback method to receive keyboard events void TestbedApplication::keyboard(GLFWwindow* window, int key, int scancode, int action, int mods) { diff --git a/testbed/src/TestbedApplication.h b/testbed/src/TestbedApplication.h index 6abd7b8a..56a62b1e 100644 --- a/testbed/src/TestbedApplication.h +++ b/testbed/src/TestbedApplication.h @@ -133,15 +133,9 @@ class TestbedApplication { /// Check the OpenGL errors static void checkOpenGLErrors(); - /// Display the FPS - void displayFPS(); - /// Compute the FPS void computeFPS(); - /// Display the GUI - void displayGUI(); - /// GLFW error callback method static void error_callback(int error, const char* description);