From 31317175d72c62994b98a93e1b827633b4de9cb2 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Tue, 1 Aug 2017 23:47:35 +0100 Subject: Fixing constructors and destructors --- src/body.cpp | 3 --- src/camera2d.cpp | 3 --- src/glslprogram.cpp | 3 --- src/texturecache.cpp | 3 --- 4 files changed, 12 deletions(-) (limited to 'src') diff --git a/src/body.cpp b/src/body.cpp index 524a92ee..ad92b0ca 100644 --- a/src/body.cpp +++ b/src/body.cpp @@ -13,9 +13,6 @@ namespace yage const double Body::GRAVITY=-9.81; -Body::~Body() -{} - double Body::xPosition() const { return position_[0]; diff --git a/src/camera2d.cpp b/src/camera2d.cpp index 0b60b7c6..88b468de 100644 --- a/src/camera2d.cpp +++ b/src/camera2d.cpp @@ -19,9 +19,6 @@ Camera2D::Camera2D(int screen_width, int screen_height) : ortho_matrix_(glm::ortho(0.f, (float)screen_width, 0.f, (float)screen_height)) {} -Camera2D::~Camera2D() -{} - void Camera2D::update(GlslProgram &program) { if(matrix_needs_update_) diff --git a/src/glslprogram.cpp b/src/glslprogram.cpp index acb81f56..18fee54e 100644 --- a/src/glslprogram.cpp +++ b/src/glslprogram.cpp @@ -15,9 +15,6 @@ namespace yage { -GlslProgram::GlslProgram() -{} - GlslProgram::~GlslProgram() { // cleanup all the shaders and the program diff --git a/src/texturecache.cpp b/src/texturecache.cpp index bc48c4e0..6d10b209 100644 --- a/src/texturecache.cpp +++ b/src/texturecache.cpp @@ -15,9 +15,6 @@ namespace yage TextureCache::TextureCache() {} -TextureCache::~TextureCache() -{} - Texture TextureCache::getTexture(const std::string &texture_path) { auto itr = texture_map_.find(texture_path); -- cgit