From aa7db138e8c52d037d4982e5e1e3f384b95cd7ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 4 Apr 2014 13:55:57 +0200 Subject: [PATCH] Remove unused variables Thanks to clang for better warnings than g++. --- scene_opengl.cpp | 2 -- scene_opengl.h | 1 - 2 files changed, 3 deletions(-) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index aa94bbe6be..c7bdbbbcec 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -1477,7 +1477,6 @@ void SceneOpenGL2Window::restoreStates(TextureType type, qreal opacity, qreal br OpenGLWindowPixmap::OpenGLWindowPixmap(Scene::Window *window, SceneOpenGL* scene) : WindowPixmap(window) - , m_scene(scene) , m_texture(scene->createTexture()) { } @@ -2063,7 +2062,6 @@ bool SceneOpenGLShadow::prepareBackend() const QSize top(shadowPixmap(ShadowElementTop).size()); const QSize topRight(shadowPixmap(ShadowElementTopRight).size()); const QSize right(shadowPixmap(ShadowElementRight).size()); - const QSize bottomRight(shadowPixmap(ShadowElementBottomRight).size()); const QSize bottom(shadowPixmap(ShadowElementBottom).size()); const QSize bottomLeft(shadowPixmap(ShadowElementBottomLeft).size()); const QSize left(shadowPixmap(ShadowElementLeft).size()); diff --git a/scene_opengl.h b/scene_opengl.h index 4b0c37743d..dc443ac5d1 100644 --- a/scene_opengl.h +++ b/scene_opengl.h @@ -303,7 +303,6 @@ public: SceneOpenGL::Texture *texture() const; bool bind(); private: - SceneOpenGL *m_scene; QScopedPointer m_texture; };