Commit 2ac86115 authored by Laurent Montel's avatar Laurent Montel 😁

If include is define in .h remove it if it's defined in .cpp too (scripted)

parent 9ffc8bf7
......@@ -13,7 +13,6 @@
#include "decorations/decoratedclient.h"
#include "decorations/decorationpalette.h"
#include "decorations/decorationbridge.h"
#include "cursor.h"
#include "effects.h"
#include "focuschain.h"
#include "outline.h"
......
......@@ -12,7 +12,6 @@
#include "workspace.h"
// KDE
#include <KConfigGroup>
#include <kactivities/controller.h>
// Qt
#include <QtConcurrentRun>
#include <QDBusInterface>
......
......@@ -9,7 +9,6 @@
#include "mock_drm.h"
#include <QMap>
#include <QVector>
static QMap<int, QVector<_drmModeProperty>> s_drmProperties{};
......
......@@ -6,7 +6,6 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <libinput.h>
#include "mock_libinput.h"
#include <config-kwin.h>
......
......@@ -9,7 +9,6 @@
#include "cursor.h"
// kwin
#include <kwinglobals.h>
#include "input.h"
#include "keyboard_input.h"
#include "main.h"
......
......@@ -13,7 +13,6 @@
#include "abstract_client.h"
#include "composite.h"
#include "cursor.h"
#include "options.h"
#include "platform.h"
#include "workspace.h"
......
......@@ -14,10 +14,7 @@
#include "decorations_logging.h"
#include <KConfigGroup>
#include <KSharedConfig>
#include <KColorScheme>
#include <QPalette>
#include <QFileInfo>
#include <QStandardPaths>
......
......@@ -23,7 +23,6 @@
#include <QtConcurrentRun>
#include <QDebug>
#include <QFutureWatcher>
#include <QMap>
#include <QStringList>
namespace KWin
......
......@@ -9,7 +9,6 @@
#include <kwineffects.h>
#include <kwinglplatform.h>
#include <kwinglutils.h>
#include <QByteArray>
#include <QTextStream>
......
......@@ -12,7 +12,6 @@
#include <kwinconfig.h>
#include <QFile>
#include <QFont>
#include <QIcon>
#include <QMatrix4x4>
#include <QMouseEvent>
......@@ -20,7 +19,6 @@
#include <KLocalizedString>
#include <kcolorscheme.h>
#include <kwinglutils.h>
#include <kwinglplatform.h>
#include <cmath>
......
......@@ -10,7 +10,6 @@
// KConfigSkeleton
#include "cubeconfig.h"
#include "cube_inside.h"
#include <QAction>
#include <KGlobalAccel>
......@@ -30,7 +29,6 @@
#include <cmath>
#include <kwinglutils.h>
#include <kwinglplatform.h>
namespace KWin
......
......@@ -12,7 +12,6 @@
#include "cubeslideconfig.h"
#include <kwinconfig.h>
#include <kwinglutils.h>
#include <QVector3D>
......
......@@ -12,9 +12,7 @@
#include <QAction>
#include <kwinconfig.h>
#include <QFont>
#include <QKeyEvent>
#include <QMatrix4x4>
#include <KGlobalAccel>
#include <KLocalizedString>
......
......@@ -12,10 +12,8 @@
#include "mouseclickconfig.h"
#include <QAction>
#include <kwinglutils.h>
#ifdef KWIN_HAVE_XRENDER_COMPOSITING
#include <kwinxrenderutils.h>
#include <xcb/xcb.h>
#include <xcb/render.h>
#endif
......
......@@ -16,7 +16,6 @@
#include <QAction>
#include <kwinconfig.h>
#include <kwinglplatform.h>
#include <kwinglutils.h>
#include <KGlobalAccel>
#include <KLocalizedString>
......
......@@ -15,7 +15,6 @@
#include <QDataStream>
#include <QTemporaryFile>
#include <QDir>
#include <QDBusConnection>
#include <QDBusConnectionInterface>
#include <QDBusReply>
#include <QVarLengthArray>
......
......@@ -17,7 +17,6 @@
// KDE
#include <KConfigGroup>
#include <KSharedConfig>
#include <KStartupInfo>
#include <KSelectionOwner>
#include <KWindowSystem>
// KWin
......
......@@ -18,7 +18,6 @@
#include <KWaylandServer/display.h>
#include <KWaylandServer/seat_interface.h>
#include <KWaylandServer/textinput_v2_interface.h>
#include <KWaylandServer/textinput_v3_interface.h>
#include <KWaylandServer/surface_interface.h>
#include <KWaylandServer/inputmethod_v1_interface.h>
......
......@@ -6,7 +6,6 @@
*/
#include "rulesmodel.h"
#include <rules.h>
#include <QFileInfo>
#include <QIcon>
......
......@@ -10,7 +10,6 @@
#include "kwineffectquickview.h"
#include "kwinglutils.h"
#include "kwineffects.h"
#include "logging_p.h"
#include <QQmlEngine>
......@@ -19,7 +18,6 @@
#include <QQmlComponent>
#include <QQuickView>
#include <QQuickRenderControl>
#include <QUrl>
#include <QOffscreenSurface>
#include <QOpenGLContext>
......
......@@ -17,12 +17,10 @@
#endif
#include <QVariant>
#include <QList>
#include <QTimeLine>
#include <QFontMetrics>
#include <QPainter>
#include <QPixmap>
#include <QVector2D>
#include <QGraphicsRotation>
#include <QGraphicsScale>
#include <QtMath>
......
......@@ -22,7 +22,6 @@
#include <QVector2D>
#include <QVector3D>
#include <QVector4D>
#include <QMatrix4x4>
namespace KWin
{
......
......@@ -10,7 +10,6 @@
#include <QCoreApplication>
#include <QDebug>
#include <QDBusConnection>
#include <QDBusConnectionInterface>
#include <QDBusPendingCallWatcher>
#include <QDBusServiceWatcher>
......
......@@ -9,7 +9,6 @@
*/
#include "main.h"
#include <config-kwin.h>
// kwin
#include "platform.h"
#include "atoms.h"
......@@ -30,7 +29,6 @@
#include <KAboutData>
#include <KLocalizedString>
#include <KPluginMetaData>
#include <KSharedConfig>
#include <KWaylandServer/surface_interface.h>
// Qt
#include <qplatformdefs.h>
......
......@@ -20,7 +20,6 @@
#include "screens.h"
#endif
#include <QRect>
#include <QTextStream>
#include <QTimer>
......
......@@ -9,7 +9,6 @@
#include "abstract_egl_backend.h"
#include "egl_dmabuf.h"
#include "kwineglext.h"
#include "texture.h"
#include "composite.h"
#include "egl_context_attribute_builder.h"
#include "options.h"
......
......@@ -44,7 +44,6 @@
#include <unistd.h>
// drm
#include <xf86drm.h>
#include <xf86drmMode.h>
#include <libdrm/drm_mode.h>
#include "drm_gpu.h"
......
......@@ -8,7 +8,6 @@
*/
#include "drm_output.h"
#include "drm_backend.h"
#include "drm_object_plane.h"
#include "drm_object_crtc.h"
#include "drm_object_connector.h"
......@@ -33,7 +32,6 @@
#include <cerrno>
// drm
#include <xf86drm.h>
#include <xf86drmMode.h>
#include <libdrm/drm_mode.h>
#include "drm_gpu.h"
......
......@@ -20,12 +20,9 @@
#include "wayland_server.h"
#include <kwinglplatform.h>
#include <QOpenGLContext>
#include <KWaylandServer/surface_interface.h>
#include <KWaylandServer/buffer_interface.h>
#include <KWaylandServer/eglstream_controller_interface.h>
#include <KWaylandServer/display.h>
#include <KWaylandServer/resource.h>
#include <wayland-server-core.h>
#include "drm_gpu.h"
namespace KWin
......
......@@ -11,7 +11,6 @@
#include "logging.h"
#include "screens_hwcomposer.h"
#include "composite.h"
#include "input.h"
#include "main.h"
#include "wayland_server.h"
// KWayland
......
......@@ -9,7 +9,6 @@
*/
#include "wayland_backend.h"
#include <config-kwin.h>
#if HAVE_WAYLAND_EGL
#include "egl_wayland_backend.h"
......
......@@ -23,7 +23,6 @@
#include "scene.h"
#include "screens.h"
#include "xcbutils.h"
#include "texture.h"
// kwin libs
#include <kwinglplatform.h>
#include <kwinglutils.h>
......@@ -61,7 +60,6 @@ typedef struct xcb_glx_buffer_swap_complete_event_t {
#endif
#include <tuple>
#include <memory>
namespace KWin
{
......
......@@ -11,7 +11,6 @@
#include <KLocalizedString>
#include <QDebug>
#include <QSocketNotifier>
namespace KWin
......
......@@ -40,7 +40,6 @@
#include <QMouseEvent>
#include <QSharedPointer>
#include <QTimer>
#include <QVector>
#include <QTextStream>
#include <QDBusInterface>
#include <QDBusPendingCall>
......
......@@ -26,7 +26,6 @@
#include <KPackage/PackageLoader>
// Qt
#include <QDBusConnection>
#include <QDBusMessage>
#include <QDBusPendingCallWatcher>
#include <QDebug>
#include <QFutureWatcher>
......
......@@ -11,7 +11,6 @@
#include "clientmodel.h"
// tabbox
#include "tabboxconfig.h"
#include "tabboxhandler.h"
// Qt
#include <QIcon>
#include <QUuid>
......
......@@ -15,14 +15,12 @@
// tabbox
#include "clientmodel.h"
#include "desktopmodel.h"
#include "tabboxconfig.h"
#include "thumbnailitem.h"
#include "scripting/scripting.h"
#include "switcheritem.h"
#include "tabbox_logging.h"
// Qt
#include <QKeyEvent>
#include <QModelIndex>
#include <QStandardPaths>
#include <QTimer>
#include <QQmlContext>
......
......@@ -9,7 +9,6 @@
#include "tablet_input.h"
#include "abstract_client.h"
#include "decorations/decoratedclient.h"
#include "input.h"
#include "input_event.h"
#include "input_event_spy.h"
#include "libinput/device.h"
......
......@@ -19,7 +19,6 @@
#include "screens.h"
#include "shadow.h"
#include "workspace.h"
#include "xcbutils.h"
#include <KWaylandServer/surface_interface.h>
......
......@@ -9,7 +9,6 @@
*/
#include "touch_input.h"
#include "abstract_client.h"
#include "input.h"
#include "pointer_input.h"
#include "input_event_spy.h"
#include "toplevel.h"
......
......@@ -46,7 +46,6 @@
#include <QAction>
#include <QCheckBox>
#include <QtConcurrentRun>
#include <QPointer>
#include <QPushButton>
#include <KGlobalAccel>
......
......@@ -27,7 +27,6 @@
#include <KWaylandServer/server_decoration_palette_interface.h>
#include <KWaylandServer/surface_interface.h>
#include <KWaylandServer/xdgdecoration_v1_interface.h>
#include <KWaylandServer/xdgshell_interface.h>
using namespace KWaylandServer;
......
......@@ -24,7 +24,6 @@
#include <QAbstractEventDispatcher>
#include <QFile>
#include <QFutureWatcher>
#include <QTimer>
#include <QtConcurrentRun>
......
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