Commit bed9b1cb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

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

parent 43a24f87
......@@ -26,7 +26,6 @@
#include <QX11Info>
#include <QDBusServiceWatcher>
#include <QDBusConnection>
#include <xcb/xcb_keysyms.h>
#define USED_MASK (XCB_MOD_MASK_SHIFT | XCB_MOD_MASK_CONTROL | XCB_MOD_MASK_1 | XCB_MOD_MASK_4)
......
......@@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "enginemanager.h"
#include <QStringList>
#define THRESHOLD 256
......
......@@ -22,7 +22,6 @@
#include <locale.h>
#include <stdlib.h>
#include <string.h>
#include <ibus.h>
#include <string>
#include <QByteArray>
#include <QPair>
......
......@@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "propertymanager.h"
#include <QByteArray>
PropertyManager::PropertyManager() : m_props(nullptr)
{
......
......@@ -26,7 +26,6 @@
#include <QList>
#include <QMap>
#include <QString>
#include <QStringList>
#include <QVariant>
#include <QDBusServiceWatcher>
......
......@@ -21,7 +21,6 @@
#include "kimpanelplugin.h"
#include "screen.h"
#include "kimpanel.h"
#include <QQmlEngine>
void KimpanelPlugin::registerTypes(const char* uri)
{
......
......@@ -21,7 +21,6 @@
#include "pagerplugin.h"
#include "pagermodel.h"
#include <QQmlEngine>
void KickoffPlugin::registerTypes(const char *uri)
{
......
......@@ -20,7 +20,6 @@
#include "showdesktop.h"
// Qt
#include <QQmlEngine>
void ShowDesktopPlugin::registerTypes(const char *uri)
{
......
......@@ -30,7 +30,6 @@
#include <algorithm>
#include <notificationmanager/jobsmodel.h>
#include <notificationmanager/settings.h>
using namespace SmartLauncher;
......
......@@ -42,7 +42,6 @@
#include "smartlaunchers/smartlauncheritem.h"
#include <QAction>
#include <QQmlEngine>
void TaskManagerPlugin::registerTypes(const char *uri)
{
......
......@@ -29,7 +29,6 @@
#include <KDirLister>
#include <kio/previewjob.h>
#include <KIO/EmptyTrashJob>
#include <KImageCache>
DirModel::DirModel(QObject *parent)
: KDirModel(parent),
......
......@@ -20,7 +20,6 @@
#include "desktopplugin.h"
#include "infonotification.h"
#include <QQmlEngine>
void DesktopPlugin::registerTypes(const char *uri)
{
......
......@@ -51,7 +51,6 @@
#include <KFileCopyToMenu>
#include <KFileItemActions>
#include <KFileItemListProperties>
#include <KNewFileMenu>
#include <KIO/DeleteJob>
#include <KIO/EmptyTrashJob>
#include <KIO/FileUndoManager>
......@@ -65,7 +64,6 @@
#include <KShell>
#include <KCoreDirLister>
#include <KDirLister>
#include <KDesktopFile>
#include <KDirModel>
#include <KIO/CopyJob>
......
......@@ -33,7 +33,6 @@
#include <KConfigGroup>
#include <KDirWatch>
#include <KLocalizedString>
#include <KActivities/Consumer>
#define KWINDOWSYSTEM_NO_DEPRECATED
......
......@@ -26,7 +26,6 @@
// Qt
#include <QAction>
#include <QX11Info>
#include <QTimer>
#include <QDateTime>
#include <QDBusMessage>
#include <QDBusConnection>
......
......@@ -30,7 +30,6 @@
#include <QMessageBox>
#include <QDesktopWidget>
#include <QLabel>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QApplication>
......
......@@ -22,7 +22,6 @@
#include <QAction>
#include <QDialogButtonBox>
#include <QKeySequence>
#include <QPushButton>
#include <QQmlContext>
#include <QQmlEngine>
......
......@@ -34,7 +34,6 @@
#include <KLocalizedString>
#include <KOpenWithDialog>
#include <KPropertiesDialog>
#include <KService>
// FDO user autostart directories are
// .config/autostart which has .desktop files executed by klaunch
......
......@@ -30,14 +30,11 @@
#include <time.h>
#include <sys/types.h>
#include <QComboBox>
#include <QGroupBox>
#include <QPushButton>
#include <QPainter>
#include <QTimeEdit>
#include <QCheckBox>
#include <QPaintEvent>
#include <QGridLayout>
#include <QHBoxLayout>
#include <QVBoxLayout>
......
......@@ -22,7 +22,6 @@
#include "caldialog.h"
#include "joydevice.h"
#include <QLabel>
#include <QTimer>
#include <QApplication>
......
......@@ -24,7 +24,6 @@
#include <QDebug>
#include <KLocalizedString>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/select.h>
#include <fcntl.h>
......
......@@ -27,7 +27,6 @@
#include "ui_kcm_add_layout_dialog.h"
#include <config-keyboard.h>
AddLayoutDialog::AddLayoutDialog(const Rules* rules_, Flags* flags_, const QString& model_,
const QStringList &options_, bool showLabel, QWidget* parent):
......
......@@ -31,9 +31,7 @@
#include "x11_helper.h"
#include "xinput_helper.h"
#include "xkb_helper.h"
#include "keyboard_dbus.h"
#include "xkb_rules.h"
#include "bindings.h"
#include "keyboard_hardware.h"
#include "layout_tray_icon.h"
#include "layout_memory_persister.h"
......
......@@ -23,7 +23,6 @@
#include <KWindowSystem>
#include "x11_helper.h"
#include "xkb_helper.h"
......
......@@ -24,10 +24,8 @@
#include <QMenu>
#include "xkb_rules.h"
#include "x11_helper.h"
#include "xkb_helper.h"
#include "keyboard_config.h"
#include "flags.h"
#include "layouts_menu.h"
......
......@@ -19,7 +19,6 @@
#include "x11_helper.h"
#include "debug.h"
#include <QX11Info>
#include <QCoreApplication>
#include <QDebug>
......
......@@ -25,7 +25,6 @@
#include <QDebug>
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#ifdef HAVE_XINPUT
......@@ -44,10 +43,8 @@ typedef struct xcb_input_device_presence_notify_event_t {
// FIXME: #include <xcb/xinput.h> once xcb-xinput is stable
#endif
#include "x11_helper.h"
#include "udev_helper.h"
#include <fixx11h.h>
static const int DEVICE_NONE = 0;
static const int DEVICE_KEYBOARD = 1;
......
......@@ -28,7 +28,6 @@
#include <libinput-properties.h>
#include <QFile>
#include <QX11Info>
#include <KLocalizedString>
#include <KConfig>
#include <KSharedConfig>
......
......@@ -22,7 +22,6 @@
#include <config-X11.h>
#include <QFile>
#include <QX11Info>
#include <KLocalizedString>
#include <evdev-properties.h>
......
......@@ -30,7 +30,6 @@
#include "../../../migrationlib/kdelibs4config.h"
#include <config-workspace.h>
#include <KToolInvocation>
#include <KLocalizedString>
......
......@@ -17,7 +17,6 @@
*/
#include "kcm/configcontainer.h"
#include <KPluginFactory>
K_PLUGIN_FACTORY(MousePluginFactory,
registerPlugin<ConfigContainer>();
......
......@@ -36,7 +36,6 @@
#include <QLabel>
#include <QDialog>
#include <QPainter>
#include <QPushButton>
#include <QFormLayout>
K_PLUGIN_FACTORY(SearchConfigModuleFactory, registerPlugin<SearchConfigModule>();)
......
......@@ -25,7 +25,6 @@
#include <QString>
#include <KLocalizedString>
#include <Solid/Predicate>
class PredicateItem::Private {
......
......@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
***************************************************************************/
#include "SolidActions.h"
#include "ActionItem.h"
#include <KAboutData>
......
......@@ -30,7 +30,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <Sonnet/ConfigView>
#include <Sonnet/Settings>
#include <KPluginFactory>
#include "spellcheckingskeleton.h"
#include "spellcheckingdata.h"
K_PLUGIN_FACTORY(SpellFactory, registerPlugin<SonnetSpellCheckingModule>();registerPlugin<SpellCheckingData>();)
......
......@@ -21,7 +21,6 @@
#include <QDBusInterface>
#include <QDBusError>
#include <QVector>
#include <backends/libinputcommon.h>
#include "logging.h"
......
......@@ -20,7 +20,6 @@
#include <cmath>
#include <QtAlgorithms>
#include <QScopedPointer>
#include <KLocalizedString>
#include <QDebug>
......@@ -32,10 +31,7 @@
#include "xlibbackend.h" // krazy:exclude=includes
#include "xlibnotifications.h" // krazy:exclude=includes
#if HAVE_XORGLIBINPUT
#include "libinputtouchpad.h"
#endif
#include "synapticstouchpad.h"
#include "propertyinfo.h"
#include <X11/Xlib-xcb.h>
#include <X11/Xatom.h>
......
......@@ -20,7 +20,6 @@
#include <cstring>
#include <X11/Xlib.h>
#include <X11/Xlib-xcb.h>
#include <X11/extensions/XI.h>
#include <X11/extensions/XI2proto.h>
......
......@@ -35,7 +35,6 @@
#include "sliderpair.h"
#include "touchpadbackend.h"
#include "plugins.h"
#include "testarea.h"
#include "touchpadinterface.h"
#include "customconfigdialogmanager.h"
#include "kded/kdedactions.h"
......
......@@ -22,7 +22,6 @@
#include <QDBusConnection>
#include <QDBusMessage>
#include <QDBusConnectionInterface>
#include <KNotification>
#include <KLocalizedString>
#include "plugins.h"
......
......@@ -18,7 +18,6 @@
//#include "plugins.h"
#include <KPluginFactory>
#include <KLocalizedString>
#include "kcm/touchpadconfigcontainer.h"
......
......@@ -21,7 +21,6 @@
#include <KPluginFactory>
#include <Solid/Device>
#include <Solid/DeviceNotifier>
#include <Solid/StorageAccess>
#include <Solid/StorageVolume>
......
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