Delete pointless discardShape method calls

Summary:
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: https://phabricator.kde.org/D24317
This commit is contained in:
Vlad Zahorodnii 2019-09-27 17:01:54 +03:00
parent 4552096c1d
commit a03d70c9a6
2 changed files with 0 additions and 2 deletions

View file

@ -223,7 +223,6 @@ SceneQPainter::Window::Window(SceneQPainter *scene, Toplevel *c)
SceneQPainter::Window::~Window()
{
discardShape();
}
static void paintSubSurface(QPainter *painter, const QPoint &pos, QPainterWindowPixmap *pixmap)

View file

@ -327,7 +327,6 @@ SceneXrender::Window::Window(Toplevel* c, SceneXrender *scene)
SceneXrender::Window::~Window()
{
discardShape();
}
void SceneXrender::Window::cleanup()