From: Daniel Karbach Date: Mon, 23 Feb 2015 21:22:42 +0000 (+0100) Subject: remove unused (explicit) destructors X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=6af76d9e1a6499ebdab405c1d679d24b9e19fded;p=blank.git remove unused (explicit) destructors --- 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;