Commit a03d70c9 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Delete pointless discardShape method calls

There's no point for calling discardShape from the destructor of a
Scene::Window subclass because window quads cache will be destroyed
automagically by QScopedPointer.

Reviewers: #kwin

Subscribers: kwin

Tags: #kwin

Differential Revision:
parent 4552096c
...@@ -223,7 +223,6 @@ SceneQPainter::Window::Window(SceneQPainter *scene, Toplevel *c) ...@@ -223,7 +223,6 @@ SceneQPainter::Window::Window(SceneQPainter *scene, Toplevel *c)
SceneQPainter::Window::~Window() SceneQPainter::Window::~Window()
{ {
} }
static void paintSubSurface(QPainter *painter, const QPoint &pos, QPainterWindowPixmap *pixmap) static void paintSubSurface(QPainter *painter, const QPoint &pos, QPainterWindowPixmap *pixmap)
...@@ -327,7 +327,6 @@ SceneXrender::Window::Window(Toplevel* c, SceneXrender *scene) ...@@ -327,7 +327,6 @@ SceneXrender::Window::Window(Toplevel* c, SceneXrender *scene)
SceneXrender::Window::~Window() SceneXrender::Window::~Window()
{ {
} }
void SceneXrender::Window::cleanup() void SceneXrender::Window::cleanup()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment