Skip to content

Commit

Permalink
Reduce unused includes
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey committed Mar 13, 2024
1 parent 37315ab commit a739cab
Show file tree
Hide file tree
Showing 349 changed files with 294 additions and 753 deletions.
1 change: 1 addition & 0 deletions qgroundcontrol.pro
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ INCLUDEPATH += \
src/Settings \
src/Terrain \
src/Vehicle \
src/Vehicle/Actuators \
src/Audio \
src/comm \
src/input \
Expand Down
2 changes: 0 additions & 2 deletions src/ADSB/ADSBVehicle.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#include <QGeoCoordinate>
#include <QElapsedTimer>

#include "QGCMAVLink.h"

class ADSBVehicle : public QObject
{
Q_OBJECT
Expand Down
5 changes: 2 additions & 3 deletions src/AirLink/AirLinkManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
#include "QGCCorePlugin.h"
#include "LinkManager.h"
#include "SettingsManager.h"
#include "UDPLink.h"

//#include "LinkInterface.h"

#include <QSettings>
#include <QDebug>
#include <QtCore/QJsonDocument>
#include <QtCore/QJsonArray>

const QString AirLinkManager::airlinkHost = "air-link.space";

Expand Down
3 changes: 0 additions & 3 deletions src/AirLink/AirLinkManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
#pragma once

#include "QGCToolbox.h"
#include "QGCLoggingCategory.h"
#include "Fact.h"
#include "LinkConfiguration.h"

#include <QTimer>
#include <QTime>
Expand Down
2 changes: 0 additions & 2 deletions src/AnalyzeView/GeoTagController.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@

#include "GeoTagController.h"
#include "QGCLoggingCategory.h"
#include <math.h>
#include <QtEndian>
#include <QDebug>
#include <cfloat>
#include <QDir>
#include <QUrl>

Expand Down
3 changes: 0 additions & 3 deletions src/AnalyzeView/GeoTagController.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
#ifndef GeoTagController_H
#define GeoTagController_H

#include "QmlObjectListModel.h"
#include "Fact.h"
#include "FactMetaData.h"
#include <QObject>
#include <QString>
#include <QThread>
Expand Down
1 change: 1 addition & 0 deletions src/AnalyzeView/LogDownloadController.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "ParameterManager.h"
#include "Vehicle.h"
#include "SettingsManager.h"
#include "QGCLoggingCategory.h"

#include <QDebug>
#include <QSettings>
Expand Down
2 changes: 0 additions & 2 deletions src/AnalyzeView/LogDownloadController.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#include <QLocale>
#include <QElapsedTimer>

#include <memory>

#include "AutoPilotPlugin.h"
#include "QmlObjectListModel.h"

Expand Down
4 changes: 4 additions & 0 deletions src/AnalyzeView/MAVLinkInspectorController.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
#include "MAVLinkInspectorController.h"
#include "QGCApplication.h"
#include "MultiVehicleManager.h"
#include "QGC.h"
#include "QGCLoggingCategory.h"

#include <QtCharts/QLineSeries>
#include <QtQml/QQmlEngine>

QGC_LOGGING_CATEGORY(MAVLinkInspectorLog, "MAVLinkInspectorLog")

Expand Down
1 change: 0 additions & 1 deletion src/AnalyzeView/MAVLinkInspectorController.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#pragma once

#include "MAVLinkProtocol.h"
#include "Vehicle.h"

#include <QObject>
Expand Down
3 changes: 0 additions & 3 deletions src/AnalyzeView/MavlinkConsoleController.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@

#pragma once

#include "QmlObjectListModel.h"
#include "QGCPalette.h"
#include "Fact.h"
#include "FactMetaData.h"
#include <QObject>
#include <QString>
#include <QMetaObject>
Expand Down
2 changes: 0 additions & 2 deletions src/Audio/AudioOutput.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@
*
****************************************************************************/

#include <QApplication>
#include <QDebug>
#include <QRegularExpression>

#include "AudioOutput.h"
#include "QGCApplication.h"
#include "QGC.h"
#include "SettingsManager.h"

AudioOutput::AudioOutput(QGCApplication* app, QGCToolbox* toolbox)
Expand Down
3 changes: 0 additions & 3 deletions src/Audio/AudioOutput.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

#pragma once

#include <QObject>
#include <QTimer>
#include <QThread>
#include <QStringList>
#include <QTextToSpeech>

Expand Down
1 change: 0 additions & 1 deletion src/AutoPilotPlugins/APM/APMAirframeComponent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
****************************************************************************/

#include "APMAirframeComponent.h"
#include "ArduCopterFirmwarePlugin.h"
#include "ParameterManager.h"

const char* APMAirframeComponent::_frameClassParam = "FRAME_CLASS";
Expand Down
4 changes: 0 additions & 4 deletions src/AutoPilotPlugins/APM/APMAirframeComponentController.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
****************************************************************************/

#include "APMAirframeComponentController.h"
#include "QGCMAVLink.h"
#include "MultiVehicleManager.h"
#include "QGCApplication.h"
#include "QGCFileDownload.h"
Expand All @@ -17,9 +16,6 @@
#include "ArduRoverFirmwarePlugin.h"

#include <QVariant>
#include <QQmlProperty>
#include <QStandardPaths>
#include <QDir>
#include <QJsonParseError>
#include <QJsonObject>

Expand Down
4 changes: 0 additions & 4 deletions src/AutoPilotPlugins/APM/APMAirframeComponentController.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@
#pragma once

#include <QObject>
#include <QQuickItem>
#include <QList>
#include <QAbstractListModel>

#include "AutoPilotPlugin.h"
#include "FactPanelController.h"

class APMAirframeModel;
Expand Down
5 changes: 0 additions & 5 deletions src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@


#include "APMAutoPilotPlugin.h"
#include "APMParameterMetaData.h"
#include "APMFirmwarePlugin.h"
#include "ArduCopterFirmwarePlugin.h"
#include "ArduRoverFirmwarePlugin.h"
#include "VehicleComponent.h"
#include "APMAirframeComponent.h"
#include "APMFlightModesComponent.h"
Expand All @@ -25,7 +21,6 @@
#include "APMCameraComponent.h"
#include "APMLightsComponent.h"
#include "APMSubFrameComponent.h"
#include "APMFollowComponent.h"
#include "ESP8266Component.h"
#include "APMHeliComponent.h"
#include "APMRemoteSupportComponent.h"
Expand Down
1 change: 0 additions & 1 deletion src/AutoPilotPlugins/APM/APMCameraComponent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#include "APMCameraComponent.h"
#include "APMAutoPilotPlugin.h"
#include "APMAirframeComponent.h"

APMCameraComponent::APMCameraComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent)
: VehicleComponent(vehicle, autopilot, parent)
Expand Down
2 changes: 0 additions & 2 deletions src/AutoPilotPlugins/APM/APMFlightModesComponent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

#include "APMFlightModesComponent.h"
#include "APMAutoPilotPlugin.h"
#include "APMAirframeComponent.h"
#include "APMRadioComponent.h"

APMFlightModesComponent::APMFlightModesComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent) :
VehicleComponent(vehicle, autopilot, parent),
Expand Down
2 changes: 0 additions & 2 deletions src/AutoPilotPlugins/APM/APMFlightModesComponentController.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@


#include "APMFlightModesComponentController.h"
#include "QGCMAVLink.h"

#include <QVariant>
#include <QQmlProperty>

bool APMFlightModesComponentController::_typeRegistered = false;

Expand Down
3 changes: 0 additions & 3 deletions src/AutoPilotPlugins/APM/APMFlightModesComponentController.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
#ifndef APMFlightModesComponentController_H
#define APMFlightModesComponentController_H

#include <QObject>
#include <QQuickItem>
#include <QList>
#include <QStringList>

#include "AutoPilotPlugin.h"
Expand Down
2 changes: 0 additions & 2 deletions src/AutoPilotPlugins/APM/APMFollowComponent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

#include "APMFollowComponent.h"
#include "APMAutoPilotPlugin.h"
#include "APMAirframeComponent.h"
#include "ParameterManager.h"

APMFollowComponent::APMFollowComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent)
: VehicleComponent(vehicle, autopilot, parent),
Expand Down
1 change: 1 addition & 0 deletions src/AutoPilotPlugins/APM/APMFollowComponentController.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include "FactPanelController.h"
#include "ArduRoverFirmwarePlugin.h"
#include "SettingsFact.h"

class APMFollowComponentController : public FactPanelController
{
Expand Down
1 change: 0 additions & 1 deletion src/AutoPilotPlugins/APM/APMLightsComponent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include "APMLightsComponent.h"
#include "APMAutoPilotPlugin.h"
#include "APMAirframeComponent.h"

APMLightsComponent::APMLightsComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent)
: VehicleComponent(vehicle, autopilot, parent)
Expand Down
1 change: 0 additions & 1 deletion src/AutoPilotPlugins/APM/APMMotorComponent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
****************************************************************************/

#include "APMMotorComponent.h"
#include "APMSubMotorComponentController.h"

APMMotorComponent::APMMotorComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent) :
MotorComponent(vehicle, autopilot, parent),
Expand Down
2 changes: 0 additions & 2 deletions src/AutoPilotPlugins/APM/APMPowerComponent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

#include "APMPowerComponent.h"
#include "APMAutoPilotPlugin.h"
#include "APMAirframeComponent.h"
#include "ParameterManager.h"

APMPowerComponent::APMPowerComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent)
: VehicleComponent(vehicle, autopilot, parent),
Expand Down
1 change: 0 additions & 1 deletion src/AutoPilotPlugins/APM/APMRadioComponent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#include "APMRadioComponent.h"
#include "APMAutoPilotPlugin.h"
#include "APMAirframeComponent.h"
#include "ParameterManager.h"

APMRadioComponent::APMRadioComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent) :
Expand Down
1 change: 0 additions & 1 deletion src/AutoPilotPlugins/APM/APMSafetyComponent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#include "APMSafetyComponent.h"
#include "APMAutoPilotPlugin.h"
#include "APMAirframeComponent.h"

APMSafetyComponent::APMSafetyComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent)
: VehicleComponent(vehicle, autopilot, parent)
Expand Down
2 changes: 0 additions & 2 deletions src/AutoPilotPlugins/APM/APMSensorsComponent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

#include "APMSensorsComponent.h"
#include "APMAutoPilotPlugin.h"
#include "APMSensorsComponentController.h"
#include "APMAirframeComponent.h"
#include "ParameterManager.h"

// These two list must be kept in sync
Expand Down
4 changes: 1 addition & 3 deletions src/AutoPilotPlugins/APM/APMSensorsComponentController.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@


#include "APMSensorsComponentController.h"
#include "QGCMAVLink.h"
#include "QGCApplication.h"
#include "APMAutoPilotPlugin.h"
#include "ParameterManager.h"

#include "QGCLoggingCategory.h"
#include <QVariant>
#include <QQmlProperty>

QGC_LOGGING_CATEGORY(APMSensorsComponentControllerLog, "APMSensorsComponentControllerLog")
QGC_LOGGING_CATEGORY(APMSensorsComponentControllerVerboseLog, "APMSensorsComponentControllerVerboseLog")
Expand Down
2 changes: 1 addition & 1 deletion src/AutoPilotPlugins/APM/APMSensorsComponentController.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#pragma once

#include <QObject>
#include <QtCore/QLoggingCategory>

#include "FactPanelController.h"
#include "QGCLoggingCategory.h"
#include "APMSensorsComponent.h"

Q_DECLARE_LOGGING_CATEGORY(APMSensorsComponentControllerLog)
Expand Down
1 change: 0 additions & 1 deletion src/AutoPilotPlugins/APM/APMSubFrameComponent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include "APMSubFrameComponent.h"
#include "APMAutoPilotPlugin.h"
#include "APMAirframeComponent.h"

APMSubFrameComponent::APMSubFrameComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent)
: VehicleComponent(vehicle, autopilot, parent)
Expand Down
1 change: 0 additions & 1 deletion src/AutoPilotPlugins/APM/APMSubMotorComponentController.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


#include "APMSubMotorComponentController.h"
#include "ParameterManager.h"


APMSubMotorComponentController::APMSubMotorComponentController(void)
Expand Down
2 changes: 0 additions & 2 deletions src/AutoPilotPlugins/APM/APMSubMotorComponentController.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
#ifndef APMSubMotorComponentController_H
#define APMSubMotorComponentController_H

#include <QObject>
#include "FactPanelController.h"
#include "Vehicle.h"

/// MVC Controller for APMSubMotorComponent.qml.
class APMSubMotorComponentController : public FactPanelController
Expand Down
2 changes: 0 additions & 2 deletions src/AutoPilotPlugins/APM/APMTuningComponent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

#include "APMTuningComponent.h"
#include "APMAutoPilotPlugin.h"
#include "APMAirframeComponent.h"
#include "ParameterManager.h"

APMTuningComponent::APMTuningComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent)
: VehicleComponent(vehicle, autopilot, parent)
Expand Down
4 changes: 2 additions & 2 deletions src/AutoPilotPlugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ qt_add_library(AutoPilotPlugins STATIC
)

target_link_libraries(AutoPilotPlugins
PRIVATE
qgc
PRIVATE
qgc
)

target_include_directories(AutoPilotPlugins
Expand Down
4 changes: 1 addition & 3 deletions src/AutoPilotPlugins/Common/ESP8266ComponentController.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
/// @author Gus Grubba <[email protected]>

#include "ESP8266ComponentController.h"
#include "QGCApplication.h"
#include "ParameterManager.h"

#include "QGCLoggingCategory.h"
#include <QHostAddress>
#include <QtEndian>

QGC_LOGGING_CATEGORY(ESP8266ComponentControllerLog, "ESP8266ComponentControllerLog")

Expand Down
3 changes: 1 addition & 2 deletions src/AutoPilotPlugins/Common/ESP8266ComponentController.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@
#ifndef ESP8266ComponentController_H
#define ESP8266ComponentController_H

#include <QTimer>
#include <QtCore/QLoggingCategory>

#include "FactPanelController.h"
#include "QGCLoggingCategory.h"
#include "AutoPilotPlugin.h"

Q_DECLARE_LOGGING_CATEGORY(ESP8266ComponentControllerLog)
Expand Down
Loading

0 comments on commit a739cab

Please sign in to comment.