From bd4650482ec883053963546f06a72cc0506f70ef Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 18 May 2021 12:24:40 +0300 Subject: [PATCH] Remove unused class forward declarations in scene.h --- .../scenes/opengl/basiceglsurfacetexture_wayland.h | 5 +++++ src/scene.cpp | 4 ---- src/scene.h | 8 -------- src/surfaceitem_wayland.h | 7 +++++++ 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/platformsupport/scenes/opengl/basiceglsurfacetexture_wayland.h b/src/platformsupport/scenes/opengl/basiceglsurfacetexture_wayland.h index 373e8b48f1..e814b2de8a 100644 --- a/src/platformsupport/scenes/opengl/basiceglsurfacetexture_wayland.h +++ b/src/platformsupport/scenes/opengl/basiceglsurfacetexture_wayland.h @@ -10,6 +10,11 @@ #include +namespace KWaylandServer +{ +class BufferInterface; +} + namespace KWin { diff --git a/src/scene.cpp b/src/scene.cpp index b9600c730b..58eb1380b4 100644 --- a/src/scene.cpp +++ b/src/scene.cpp @@ -81,10 +81,6 @@ #include "thumbnailitem.h" #include "composite.h" -#include -#include -#include - namespace KWin { diff --git a/src/scene.h b/src/scene.h index cfd95fa8e8..f28346c8e7 100644 --- a/src/scene.h +++ b/src/scene.h @@ -17,14 +17,6 @@ #include #include -class QOpenGLFramebufferObject; - -namespace KWaylandServer -{ -class BufferInterface; -class SubSurfaceInterface; -} - namespace KWin { diff --git a/src/surfaceitem_wayland.h b/src/surfaceitem_wayland.h index d6b7e92c1e..762c3a0156 100644 --- a/src/surfaceitem_wayland.h +++ b/src/surfaceitem_wayland.h @@ -8,6 +8,13 @@ #include "surfaceitem.h" +namespace KWaylandServer +{ +class BufferInterface; +class SubSurfaceInterface; +class SurfaceInterface; +} + namespace KWin {