From 6af76d9e1a6499ebdab405c1d679d24b9e19fded Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Mon, 23 Feb 2015 22:22:42 +0100 Subject: [PATCH] remove unused (explicit) destructors --- src/app.cpp | 4 ---- src/app.hpp | 1 - src/camera.cpp | 4 ---- src/camera.hpp | 1 - src/controller.cpp | 4 ---- src/controller.hpp | 1 - src/init.cpp | 8 -------- src/init.hpp | 2 -- 8 files changed, 25 deletions(-) diff --git a/src/app.cpp b/src/app.cpp index c418660..5a5d6fb 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -163,10 +163,6 @@ Application::Application() glClearColor(0.0, 0.0, 0.0, 1.0); } -Application::~Application() { - -} - void Application::Run() { running = true; diff --git a/src/app.hpp b/src/app.hpp index 8c6d792..0015403 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -18,7 +18,6 @@ class Application { public: Application(); - ~Application(); Application(const Application &) = delete; Application &operator =(const Application &) = delete; diff --git a/src/camera.cpp b/src/camera.cpp index 8804d11..c5283bd 100644 --- a/src/camera.cpp +++ b/src/camera.cpp @@ -18,10 +18,6 @@ Camera::Camera() } -Camera::~Camera() { - -} - void Camera::Viewport(int width, int height) { Viewport(0, 0, width, height); diff --git a/src/camera.hpp b/src/camera.hpp index 419922a..3adb800 100644 --- a/src/camera.hpp +++ b/src/camera.hpp @@ -14,7 +14,6 @@ class Camera public: Camera(); - ~Camera(); Camera(const Camera &) = delete; Camera &operator =(const Camera &) = delete; diff --git a/src/controller.cpp b/src/controller.cpp index 5d547b7..d0a026b 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -16,10 +16,6 @@ FPSController::FPSController() } -FPSController::~FPSController() { - -} - glm::mat4 FPSController::Transform() const { return glm::translate(position) * glm::eulerAngleYX(yaw, pitch); diff --git a/src/controller.hpp b/src/controller.hpp index 013b3e4..f636bcd 100644 --- a/src/controller.hpp +++ b/src/controller.hpp @@ -10,7 +10,6 @@ class FPSController { public: FPSController(); - ~FPSController(); glm::mat4 Transform() const; diff --git a/src/init.cpp b/src/init.cpp index 9e73c28..2c1c73a 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -62,10 +62,6 @@ InitGL::InitGL() { } } -InitGL::~InitGL() { - -} - Window::Window() : handle(SDL_CreateWindow( @@ -171,8 +167,4 @@ InitGLEW::InitGLEW() { } } -InitGLEW::~InitGLEW() { - -} - } diff --git a/src/init.hpp b/src/init.hpp index d596cbc..a467e69 100644 --- a/src/init.hpp +++ b/src/init.hpp @@ -37,7 +37,6 @@ class InitGL { public: InitGL(); - ~InitGL(); InitGL(const InitGL &) = delete; InitGL &operator =(const InitGL &) = delete; @@ -98,7 +97,6 @@ class InitGLEW { public: InitGLEW(); - ~InitGLEW(); InitGLEW(const InitGLEW &) = delete; InitGLEW &operator =(const InitGLEW &) = delete; -- 2.39.2