Commit d5c06dfd 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 e7794075
......@@ -27,7 +27,6 @@
#include <QDesktopServices>
#include <KLocalizedString>
#include <KNotification>
#include <NetworkManagerQt/ActiveConnection>
......
......@@ -37,7 +37,6 @@
#include <ModemManager/ModemManager.h>
#include <ModemManagerQt/Manager>
#include <ModemManagerQt/Modem>
#include <ModemManagerQt/Sim>
#include "pindialog.h"
......
......@@ -26,7 +26,6 @@
#include <NetworkManagerQt/Connection>
#include <NetworkManagerQt/ConnectionSettings>
#include <NetworkManagerQt/Device>
#include <NetworkManagerQt/Manager>
#include <NetworkManagerQt/ModemDevice>
#include <NetworkManagerQt/WiredDevice>
#include <NetworkManagerQt/WirelessDevice>
......@@ -34,7 +33,6 @@
#if WITH_MODEMMANAGER_SUPPORT
#include <ModemManagerQt/manager.h>
#include <ModemManagerQt/modem.h>
#endif
ConnectionIcon::ConnectionIcon(QObject* parent)
......
......@@ -20,7 +20,6 @@
#include "connectioneditordialog.h"
#include <QDialogButtonBox>
#include <QPushButton>
#include <QVBoxLayout>
......
......@@ -24,7 +24,6 @@
#include <NetworkManagerQt/Settings>
#include <NetworkManagerQt/Connection>
#include <NetworkManagerQt/ConnectionSettings>
#include <QDBusConnection>
#include <QDialog>
......
......@@ -20,7 +20,6 @@
#include "debug.h"
#include "wireguardinterfacewidget.h"
#include "wireguardtabwidget.h"
#include "ui_wireguardinterfacewidget.h"
#include "uiutils.h"
#include "simpleipv4addressvalidator.h"
#include "simpleiplistvalidator.h"
......@@ -32,7 +31,6 @@
#include <QStandardItemModel>
#include <NetworkManagerQt/Utils>
#include <NetworkManagerQt/WireguardSetting>
#include <NetworkManagerQt/Ipv4Setting>
#include <NetworkManagerQt/Ipv6Setting>
#include <KColorScheme>
......
......@@ -30,7 +30,6 @@
#include <QUrl>
#include <NetworkManagerQt/Utils>
#include <NetworkManagerQt/WireguardSetting>
#include <NetworkManagerQt/Ipv4Setting>
#include <NetworkManagerQt/Ipv6Setting>
#include <KColorScheme>
......
......@@ -30,7 +30,6 @@
#include <QStandardItemModel>
#include <NetworkManagerQt/Utils>
#include <NetworkManagerQt/WireguardSetting>
#include <NetworkManagerQt/Ipv4Setting>
#include <NetworkManagerQt/Ipv6Setting>
#include <KColorScheme>
......
......@@ -24,7 +24,6 @@
#include <QLayout>
#include <QDialogButtonBox>
#include <KEditListWidget>
#include <KLineEdit>
......
......@@ -21,7 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "intdelegate.h"
#include <QIntValidator>
#include <QLineEdit>
IntDelegate::IntDelegate(QObject * parent) : Delegate(parent), m_boundary(false) {}
IntDelegate::IntDelegate(int min, int max, QObject * parent) : Delegate(parent), m_min(min), m_max(max), m_boundary(true) {}
......
......@@ -28,11 +28,7 @@
#include <NetworkManagerQt/AccessPoint>
#include <NetworkManagerQt/WiredDevice>
#include <NetworkManagerQt/WirelessDevice>
#include <NetworkManagerQt/Settings>
#include <NetworkManagerQt/Setting>
#include <NetworkManagerQt/Connection>
#include <NetworkManagerQt/Utils>
#include <NetworkManagerQt/ConnectionSettings>
#include <NetworkManagerQt/GsmSetting>
#include <NetworkManagerQt/WiredSetting>
#include <NetworkManagerQt/WirelessSetting>
......
......@@ -26,10 +26,8 @@
#if WITH_MODEMMANAGER_SUPPORT
#include <ModemManagerQt/manager.h>
#include <ModemManagerQt/modem.h>
#endif
#include <NetworkManagerQt/Settings>
#include <NetworkManagerQt/Utils>
NetworkModel::NetworkModel(QObject *parent)
: QAbstractListModel(parent)
......
......@@ -29,7 +29,6 @@
#include <NetworkManagerQt/ModemDevice>
#include <NetworkManagerQt/Settings>
#include <NetworkManagerQt/TeamDevice>
#include <NetworkManagerQt/Utils>
#include <NetworkManagerQt/VlanDevice>
#include <NetworkManagerQt/VpnConnection>
#include <NetworkManagerQt/VpnSetting>
......
......@@ -30,17 +30,10 @@
#include <KConfigGroup>
#include <KSharedConfig>
#include <NetworkManagerQt/BluetoothDevice>
#include <NetworkManagerQt/Manager>
#include <NetworkManagerQt/Device>
#include <NetworkManagerQt/AccessPoint>
#include <NetworkManagerQt/WiredDevice>
#include <NetworkManagerQt/WirelessDevice>
#include <NetworkManagerQt/WirelessSetting>
#if WITH_MODEMMANAGER_SUPPORT
#include <ModemManagerQt/manager.h>
#include <ModemManagerQt/modem.h>
#include <ModemManagerQt/modemdevice.h>
#include <ModemManagerQt/modem3gpp.h>
#include <ModemManagerQt/modemcdma.h>
......
......@@ -27,7 +27,6 @@
#include "passwordfield.h"
#include <QDialog>
#include <QString>
#include <QLabel>
#include <QEventLoop>
#include <QFormLayout>
......
......@@ -20,7 +20,6 @@
#include "openconnectauthworkerthread.h"
#include <QThread>
#include <QMutex>
#include <QWaitCondition>
#include <QString>
......@@ -28,7 +27,6 @@
extern "C"
{
#include <openconnect.h>
#include <stdlib.h>
#if !OPENCONNECT_CHECK_VER(1,5)
#include <openssl/ssl.h>
......
......@@ -19,7 +19,6 @@
*/
#include "vpncwidget.h"
#include "vpncadvancedwidget.h"
#include "ui_vpnc.h"
#include "nm-vpnc-service.h"
......
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