From 1b5814c0f27543cd8b7e9c89a3e112cfa4c797fc Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 31 Aug 2022 12:15:36 +0300 Subject: [PATCH] Remove unused core/platform.h includes --- src/activation.cpp | 1 - src/{ => core}/dmabufattributes.h | 0 src/cursor.cpp | 1 - src/dmabuftexture.h | 2 +- src/dpmsinputeventfilter.cpp | 1 - src/hide_cursor_spy.cpp | 1 - src/inputpanelv1window.cpp | 1 - src/internalwindow.cpp | 1 - src/item.cpp | 1 - src/layershellv1integration.cpp | 1 - src/placementtracker.cpp | 4 ++-- src/rules.cpp | 1 - src/scene.cpp | 1 - src/scripting/workspace_wrapper.cpp | 1 - src/tabbox/tabbox.cpp | 1 - src/unmanaged.cpp | 1 - src/wayland/linuxdmabufv1clientbuffer.h | 2 +- src/waylandwindow.cpp | 1 - src/window.cpp | 1 - src/x11window.cpp | 1 - src/xwayland/xwayland.cpp | 1 - 21 files changed, 4 insertions(+), 21 deletions(-) rename src/{ => core}/dmabufattributes.h (100%) diff --git a/src/activation.cpp b/src/activation.cpp index d55c34ade1..509b591bc2 100644 --- a/src/activation.cpp +++ b/src/activation.cpp @@ -15,7 +15,6 @@ */ -#include "core/platform.h" #include "cursor.h" #include "focuschain.h" #include "netinfo.h" diff --git a/src/dmabufattributes.h b/src/core/dmabufattributes.h similarity index 100% rename from src/dmabufattributes.h rename to src/core/dmabufattributes.h diff --git a/src/cursor.cpp b/src/cursor.cpp index c2156a0272..7e58a11b9d 100644 --- a/src/cursor.cpp +++ b/src/cursor.cpp @@ -11,7 +11,6 @@ // kwin #include "composite.h" #include "core/output.h" -#include "core/platform.h" #include "input.h" #include "keyboard_input.h" #include "main.h" diff --git a/src/dmabuftexture.h b/src/dmabuftexture.h index fab641c5cc..d9c2d463fc 100644 --- a/src/dmabuftexture.h +++ b/src/dmabuftexture.h @@ -8,7 +8,7 @@ #include "kwin_export.h" -#include "dmabufattributes.h" +#include "core/dmabufattributes.h" #include diff --git a/src/dpmsinputeventfilter.cpp b/src/dpmsinputeventfilter.cpp index b1830f1c30..69f2df8827 100644 --- a/src/dpmsinputeventfilter.cpp +++ b/src/dpmsinputeventfilter.cpp @@ -8,7 +8,6 @@ */ #include "dpmsinputeventfilter.h" #include "core/output.h" -#include "core/platform.h" #include "main.h" #include "wayland/seat_interface.h" #include "wayland_server.h" diff --git a/src/hide_cursor_spy.cpp b/src/hide_cursor_spy.cpp index 4f84c9e512..2a1b6d7155 100644 --- a/src/hide_cursor_spy.cpp +++ b/src/hide_cursor_spy.cpp @@ -7,7 +7,6 @@ SPDX-License-Identifier: GPL-2.0-or-later */ #include "hide_cursor_spy.h" -#include "core/platform.h" #include "cursor.h" #include "input_event.h" #include "main.h" diff --git a/src/inputpanelv1window.cpp b/src/inputpanelv1window.cpp index 81154b33eb..88fa38e186 100644 --- a/src/inputpanelv1window.cpp +++ b/src/inputpanelv1window.cpp @@ -9,7 +9,6 @@ #include "inputpanelv1window.h" #include "core/output.h" -#include "core/platform.h" #include "deleted.h" #include "inputmethod.h" #include "wayland/output_interface.h" diff --git a/src/internalwindow.cpp b/src/internalwindow.cpp index 9f44bf51db..cc756f4033 100644 --- a/src/internalwindow.cpp +++ b/src/internalwindow.cpp @@ -8,7 +8,6 @@ SPDX-License-Identifier: GPL-2.0-or-later */ #include "internalwindow.h" -#include "core/platform.h" #include "decorations/decorationbridge.h" #include "deleted.h" #include "surfaceitem.h" diff --git a/src/item.cpp b/src/item.cpp index 062eb6f39b..78f4a2593a 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -7,7 +7,6 @@ #include "item.h" #include "composite.h" #include "core/output.h" -#include "core/platform.h" #include "core/renderloop.h" #include "main.h" #include "scene.h" diff --git a/src/layershellv1integration.cpp b/src/layershellv1integration.cpp index fd14df1157..12f3b02b56 100644 --- a/src/layershellv1integration.cpp +++ b/src/layershellv1integration.cpp @@ -6,7 +6,6 @@ #include "layershellv1integration.h" #include "core/output.h" -#include "core/platform.h" #include "layershellv1window.h" #include "wayland/display.h" #include "wayland/layershell_v1_interface.h" diff --git a/src/placementtracker.cpp b/src/placementtracker.cpp index 579ea6686f..f135b0b825 100644 --- a/src/placementtracker.cpp +++ b/src/placementtracker.cpp @@ -7,8 +7,8 @@ SPDX-License-Identifier: GPL-2.0-or-later */ #include "placementtracker.h" -#include "output.h" -#include "platform.h" +#include "core/output.h" +#include "core/platform.h" #include "window.h" #include "workspace.h" diff --git a/src/rules.cpp b/src/rules.cpp index 2c3a8944d9..d6e5c1d2aa 100644 --- a/src/rules.cpp +++ b/src/rules.cpp @@ -20,7 +20,6 @@ #ifndef KCMRULES #include "client_machine.h" -#include "core/platform.h" #include "main.h" #include "virtualdesktops.h" #include "window.h" diff --git a/src/scene.cpp b/src/scene.cpp index 96c010ec90..335a67eab8 100644 --- a/src/scene.cpp +++ b/src/scene.cpp @@ -55,7 +55,6 @@ #include "scene.h" #include "composite.h" #include "core/output.h" -#include "core/platform.h" #include "core/renderlayer.h" #include "core/renderloop.h" #include "deleted.h" diff --git a/src/scripting/workspace_wrapper.cpp b/src/scripting/workspace_wrapper.cpp index 2da0b8894a..daf40030d5 100644 --- a/src/scripting/workspace_wrapper.cpp +++ b/src/scripting/workspace_wrapper.cpp @@ -10,7 +10,6 @@ #include "workspace_wrapper.h" #include "core/output.h" -#include "core/platform.h" #include "outline.h" #include "virtualdesktops.h" #include "workspace.h" diff --git a/src/tabbox/tabbox.cpp b/src/tabbox/tabbox.cpp index e6c92565d6..2c5c2f699a 100644 --- a/src/tabbox/tabbox.cpp +++ b/src/tabbox/tabbox.cpp @@ -24,7 +24,6 @@ #include "activities.h" #endif #include "composite.h" -#include "core/platform.h" #include "effects.h" #include "focuschain.h" #include "input.h" diff --git a/src/unmanaged.cpp b/src/unmanaged.cpp index d6a743d38b..7c9c129f22 100644 --- a/src/unmanaged.cpp +++ b/src/unmanaged.cpp @@ -9,7 +9,6 @@ #include "unmanaged.h" -#include "core/platform.h" #include "deleted.h" #include "effects.h" #include "surfaceitem_x11.h" diff --git a/src/wayland/linuxdmabufv1clientbuffer.h b/src/wayland/linuxdmabufv1clientbuffer.h index b2fe253191..e4003f0208 100644 --- a/src/wayland/linuxdmabufv1clientbuffer.h +++ b/src/wayland/linuxdmabufv1clientbuffer.h @@ -11,7 +11,7 @@ #include "clientbuffer.h" #include "clientbufferintegration.h" -#include "dmabufattributes.h" +#include "core/dmabufattributes.h" #include #include diff --git a/src/waylandwindow.cpp b/src/waylandwindow.cpp index 56bb4b8c8a..894695faaa 100644 --- a/src/waylandwindow.cpp +++ b/src/waylandwindow.cpp @@ -7,7 +7,6 @@ */ #include "waylandwindow.h" -#include "core/platform.h" #include "screens.h" #include "wayland/clientbuffer.h" #include "wayland/clientconnection.h" diff --git a/src/window.cpp b/src/window.cpp index 874b262d78..3d6cc1ba82 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -17,7 +17,6 @@ #include "atoms.h" #include "client_machine.h" #include "composite.h" -#include "core/platform.h" #include "decorations/decoratedclient.h" #include "decorations/decorationbridge.h" #include "decorations/decorationpalette.h" diff --git a/src/x11window.cpp b/src/x11window.cpp index e8d8deec45..b0e462343a 100644 --- a/src/x11window.cpp +++ b/src/x11window.cpp @@ -17,7 +17,6 @@ #include "atoms.h" #include "client_machine.h" #include "composite.h" -#include "core/platform.h" #include "cursor.h" #include "decorations/decoratedclient.h" #include "decorations/decorationbridge.h" diff --git a/src/xwayland/xwayland.cpp b/src/xwayland/xwayland.cpp index d515d62d3c..b0d5f982ae 100644 --- a/src/xwayland/xwayland.cpp +++ b/src/xwayland/xwayland.cpp @@ -19,7 +19,6 @@ #include "xwldrophandler.h" #include "core/output.h" -#include "core/platform.h" #include "main_wayland.h" #include "utils/common.h" #include "utils/xcbutils.h"