Commit 5a30be62 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 a8943e57
......@@ -32,7 +32,6 @@
#include <marble/GeoDataLinearRing.h>
#include <marble/GeoDataMultiGeometry.h>
#include <marble/GeoDataPoint.h>
#include <marble/GeoDataCoordinates.h>
#include <marble/GeoDataLatLonAltBox.h>
namespace Marble
......
......@@ -45,7 +45,6 @@
#include <marble/GeoDataGeometry.h>
#include <marble/GeoDataMultiGeometry.h>
#include <marble/GeoDataPoint.h>
#include <marble/GeoDataCoordinates.h>
#include <marble/GeoDataPolygon.h>
#include <marble/GeoDataLinearRing.h>
#include <marble/GeoDataLatLonAltBox.h>
......
......@@ -10,12 +10,10 @@
#include "squad-interpolation.h"
#include <marble/MarbleWidget.h>
#include <marble/MarbleGlobal.h>
#include <marble/GeoDataLatLonAltBox.h>
#include <marble/GeoDataDocument.h>
#include <marble/GeoDataPlacemark.h>
#include <marble/GeoDataLineString.h>
#include <marble/GeoDataTreeModel.h>
#include <marble/MarblePlacemarkModel.h>
#include <marble/GeoDataLinearRing.h>
......@@ -23,7 +21,6 @@
#include <marble/MarbleMath.h>
#include <marble/ViewportParams.h>
#include <QApplication>
#include <QTimer>
namespace Marble
......
......@@ -20,7 +20,6 @@
#include <marble/MarbleWidget.h>
#include <marble/MarbleGlobal.h>
#include <marble/GeoDataDocument.h>
#include <marble/GeoDataPlacemark.h>
#include <marble/GeoDataLineString.h>
#include <marble/GeoDataTreeModel.h>
#include <marble/MarbleModel.h>
......
......@@ -18,8 +18,6 @@
#include "o5mreader.h"
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <cerrno>
#include <cstdlib>
......
......@@ -19,7 +19,6 @@
#include <QPrinter>
#include <QPainter>
#include <QTextDocument>
#include <QPointer>
#include <QUrl>
#include <QDesktopServices>
#include <QNetworkAccessManager>
......@@ -45,7 +44,6 @@
#include "GeoSceneDocument.h"
#include "GeoSceneHead.h"
#include "GeoUriParser.h"
#include "MarbleWidget.h"
#include "MarbleDebug.h"
#include "MarbleDirs.h"
#include "MarbleModel.h"
......
......@@ -22,7 +22,6 @@
#include <cmath>
using namespace std;
#include "attlib.h"
#include "astrolib.h"
extern double frac (double f);
......
......@@ -23,7 +23,6 @@
#include <cmath>
using namespace std;
#include "attlib.h"
#include "astrolib.h"
double frac (double f)
......
......@@ -27,7 +27,6 @@
#include <ctime>
using namespace std;
#include "attlib.h"
#include "astrolib.h"
// ################ Planetary Sats Class ####################
......
......@@ -40,7 +40,6 @@ using namespace std;
#include "astrolib.h"
#include "astr2lib.h"
#include "attlib.h"
const double degrad = M_PI / 180.0;
......
......@@ -17,7 +17,6 @@
#include "MarbleDebug.h"
#include "MarbleModel.h"
#include "ViewportParams.h"
#include "MarbleGlobal.h"
#include "RoutingManager.h"
#include "RoutingModel.h"
#include "Route.h"
......
......@@ -15,7 +15,6 @@
#include "CurrentLocationWidget.h"
// Marble
#include "AutoNavigation.h"
#include "MarbleDebug.h"
#include "MarbleLocale.h"
#include "MarbleModel.h"
......
......@@ -13,10 +13,8 @@
#include <QBuffer>
#include <QDataStream>
#include <QFile>
#include <QThread>
#include "GeoDataParser.h"
#include "GeoDataDocument.h"
#include "GeoDataFolder.h"
#include "GeoDataGroundOverlay.h"
#include "GeoDataPlacemark.h"
......
......@@ -20,7 +20,6 @@
#include "MarbleModel.h"
#include "GeoDataTreeModel.h"
#include "GeoDataDocument.h"
#include "GeoDataLatLonAltBox.h"
#include "GeoDataStyle.h"
......
......@@ -17,7 +17,6 @@
// Qt
#include <qmath.h>
#include <QRunnable>
#include <QImage>
// Marble
#include "GeoPainter.h"
......
......@@ -26,7 +26,6 @@
#include "GeoDataPoint.h"
#include "GeoDataPolygon.h"
#include "MarbleGlobal.h"
#include "ViewportParams.h"
#include "AbstractProjection.h"
......
......@@ -14,7 +14,6 @@
#include <QUrl>
#include <QUrlQuery>
#include "Planet.h"
#include "PlanetFactory.h"
#include "MarbleDebug.h"
......
......@@ -17,7 +17,6 @@
#include "HttpDownloadManager.h"
#include <QNetworkAccessManager>
#include <QNetworkReply>
using namespace Marble;
......
......@@ -12,10 +12,8 @@
#include "LatLonEdit.h"
#include "ui_LatLonEdit.h"
#include <QWidget>
#include "MarbleDebug.h"
#include "MarbleGlobal.h"
namespace Marble
......
......@@ -13,7 +13,6 @@
#include "MarbleDirs.h"
#include "MarbleDebug.h"
#include <QDir>
#include <QFile>
#include <QString>
#include <QStringList>
......
......@@ -25,7 +25,6 @@
#include "MarbleGlobal.h"
#include "MarbleDebug.h"
#include "MarbleMap.h"
#include "GeoDataCoordinates.h"
#include "MarbleAbstractPresenter.h"
#include "ViewportParams.h"
#include "AbstractFloatItem.h"
......
......@@ -26,7 +26,6 @@
#ifndef MARBLE_NO_WEBKITWIDGETS
#include <QWebEnginePage>
#include <QWebChannel>
#include "MarbleWebView.h"
#endif
#include <QTextDocument>
......
......@@ -21,7 +21,6 @@
// Qt
#include <QElapsedTimer>
#include <QRegion>
#include <QtMath>
// Marble
......
......@@ -27,7 +27,6 @@
#include "kdescendantsproxymodel.h"
#include "MapThemeManager.h"
#include "MarbleGlobal.h"
#include "MarbleDebug.h"
#include "GeoSceneDocument.h"
......
......@@ -13,7 +13,6 @@
#include "ParsingRunnerManager.h"
#include "MarbleDebug.h"
#include "GeoDataDocument.h"
#include "PluginManager.h"
#include "ParseRunnerPlugin.h"
#include "RunnerTask.h"
......
......@@ -11,11 +11,9 @@
#include "PlacemarkEditHeader.h"
#include "ui_PlacemarkEditHeader.h"
#include <QWidget>
#include <QFileDialog>
#include "MarbleDebug.h"
#include "MarbleGlobal.h"
namespace Marble
......
......@@ -23,7 +23,6 @@
#include "GeoDataLatLonAltBox.h"
#include "GeoDataLatLonBox.h"
#include "GeoDataPlacemark.h"
#include "GeoDataStyle.h"
#include "GeoDataIconStyle.h"
#include "GeoDataLabelStyle.h"
......
......@@ -14,7 +14,6 @@
#include "PluginManager.h"
// Qt
#include <QList>
#include <QPluginLoader>
#include <QElapsedTimer>
#include <QMessageBox>
......
......@@ -30,11 +30,9 @@
#include <QTimer>
// Marble
#include "MarbleGlobal.h"
#include "MarbleDebug.h"
#include "MarbleDirs.h"
#include "MarblePluginSettingsWidget.h"
#include "MarbleLocale.h"
#include "MarbleWidget.h"
#include "MarbleModel.h"
#include "RenderPlugin.h"
......
......@@ -12,7 +12,6 @@
#include "Quaternion.h"
#include <cmath>
using namespace std;
#include <QString>
......
......@@ -19,7 +19,6 @@
#include "ViewParams.h"
#include "ViewportParams.h"
#include <QImage>
using namespace Marble;
......
......@@ -26,9 +26,7 @@
#include "routing/RouteRequest.h"
#include "routing/RoutingProfilesModel.h"
#include <QObject>
#include <QString>
#include <QVector>
#include <QThreadPool>
#include <QTimer>
#include <QMutex>
......
......@@ -17,7 +17,6 @@
#include <qmath.h>
#include <QRunnable>
#include "MarbleGlobal.h"
#include "GeoPainter.h"
#include "GeoDataPolygon.h"
#include "MarbleDebug.h"
......
......@@ -33,7 +33,6 @@
#include <QDate>
#include <QSet>
#include <QScreen>
#include <QHash>
#include <QDebug>
namespace Marble
......
......@@ -16,14 +16,10 @@
#include <qmath.h>
#include <QFile>
#include <QSharedPointer>
#include <QString>
#include <QVector>
#include <QElapsedTimer>
#include <QColor>
#include <QImage>
#include <QPainter>
#include "MarbleGlobal.h"
#include "GeoPainter.h"
#include "MarbleDebug.h"
#include "ViewParams.h"
......@@ -33,7 +29,6 @@
#include "GeoDataPolygon.h"
#include "GeoDataFeature.h"
#include "GeoDataPlacemark.h"
#include "GeoDataDocument.h"
#include "AbstractProjection.h"
namespace Marble
......
......@@ -17,7 +17,6 @@
// Qt
#include <qmath.h>
#include <QImage>
// Marble
#include "GeoPainter.h"
......
......@@ -12,13 +12,11 @@
#include "VectorTileModel.h"
#include "GeoDataDocument.h"
#include "GeoDataLatLonBox.h"
#include "GeoDataTreeModel.h"
#include "GeoSceneVectorTileDataset.h"
#include "MarbleGlobal.h"
#include "MarbleDebug.h"
#include "MathHelper.h"
#include "TileId.h"
#include "TileLoader.h"
#include <qmath.h>
......
......@@ -10,7 +10,6 @@
#include "MergeItem.h"
#include "GeoDataPlacemark.h"
namespace Marble {
......
......@@ -31,7 +31,6 @@
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QJsonDocument>
#include <QJsonArray>
#include <QJsonObject>
......
......@@ -24,7 +24,6 @@
#include "kdescendantsproxymodel.h"
#include "osm/OsmPlacemarkData.h"
#include <QSortFilterProxyModel>
namespace Marble {
......
......@@ -11,7 +11,6 @@
#include "SearchBackend.h"
#include "SearchRunnerManager.h"
#include "MarblePlacemarkModel.h"
#include "MarbleModel.h"
#include "Coordinate.h"
......
......@@ -16,7 +16,6 @@
// Marble
#include "MarbleDebug.h"
#include "GeoDataFeature.h"
#include "GeoDataFolder.h"
#include "GeoDataPlacemark.h"
#include "GeoDataDocument.h"
......
......@@ -22,7 +22,6 @@
#include <QDataStream>
#include <QPointF>
#include "MarbleGlobal.h"
#include "MarbleDebug.h"
#include "MarbleMath.h"
......
......@@ -23,7 +23,6 @@
#include "GeoDataDocument.h"
#include "GeoDataDocument_p.h"
#include "GeoDataStyle.h"
#include "GeoDataStyleMap.h"
#include "GeoDataNetworkLinkControl.h"
#include "GeoDataSchema.h"
......
......@@ -13,7 +13,6 @@
#include "GeoDataLatLonBox.h"
#include "MarbleDebug.h"
#include "GeoDataCoordinates.h"
#include "GeoDataLineString.h"
#include "GeoDataTypes.h"
......
......@@ -9,7 +9,6 @@
//
#include "GeoDataLatLonQuad.h"
#include "GeoDataObject.h"
#include "GeoDataTypes.h"
namespace Marble {
......
......@@ -10,7 +10,6 @@
#include "GeoDataLocation.h"
#include "GeoDataTypes.h"
#include "GeoDataCoordinates.h"
namespace Marble {
......
......@@ -13,7 +13,6 @@
#include "GeoDataGeometry_p.h"
#include "GeoDataTypes.h"
#include "GeoDataLink.h"
#include "GeoDataLocation.h"
#include "GeoDataOrientation.h"
#include "GeoDataResourceMap.h"
......
......@@ -18,7 +18,6 @@
#include "GeoDataPlacemark_p.h"
#include "GeoDataMultiGeometry.h"
#include "GeoDataCoordinates.h"
#include "GeoDataLatLonAltBox.h"
#include "GeoDataData.h"
#include "osm/OsmPlacemarkData.h"
......
......@@ -10,7 +10,6 @@
#include "GeoDataPlaylist.h"
#include "GeoDataTourPrimitive.h"
#include "GeoDataTypes.h"
namespace Marble
......
......@@ -13,9 +13,7 @@
#include "GeoDataPoint.h"
#include "GeoDataPoint_p.h"
#include "GeoDataCoordinates.h"
#include <cmath>
#include "MarbleDebug.h"
#include "MarbleGlobal.h"
......
......@@ -10,7 +10,6 @@
#include "GeoLineStringGraphicsItem.h"
#include "GeoDataLineString.h"
#include "GeoDataLineStyle.h"
#include "GeoDataLabelStyle.h"
#include "GeoDataPlacemark.h"
......
......@@ -21,7 +21,6 @@
#include "KmlColorTagHandler.h"
#include <QColor>
#include "MarbleDebug.h"
#include "KmlElementDictionary.h"
......
......@@ -13,7 +13,6 @@
#include "GeoDataLatLonAltBox.h"
#include "GeoDataTypes.h"
#include "GeoWriter.h"
#include "GeoTagWriter.h"
#include "KmlGroundOverlayWriter.h"
#include "KmlElementDictionary.h"
#include "KmlObjectTagWriter.h"
......
......@@ -11,8 +11,6 @@
#include "KmlListStyleTagWriter.h"
#include "GeoDataListStyle.h"
#include "GeoDataItemIcon.h"
#include "GeoDataTypes.h"
#include "GeoWriter.h"
#include "KmlElementDictionary.h"
......
......@@ -13,7 +13,6 @@
#include "GeoDataLod.h"
#include "GeoDataTypes.h"
#include "GeoWriter.h"
#include "GeoTagWriter.h"
#include "KmlElementDictionary.h"
#include "KmlObjectTagWriter.h"
......
......@@ -15,7 +15,6 @@
#include "GeoDataTypes.h"
#include "GeoDataLod.h"
#include "GeoWriter.h"
#include "GeoTagWriter.h"
#include "KmlElementDictionary.h"
#include "KmlLatLonAltBoxWriter.h"
#include "KmlLodTagWriter.h"
......
......@@ -14,7 +14,6 @@
#include "GeoDataTypes.h"
#include "GeoWriter.h"
#include "GeoTagWriter.h"
#include "KmlOverlayTagWriter.h"
#include "KmlElementDictionary.h"
namespace Marble
......
......@@ -51,7 +51,6 @@
#include <OsmPlacemarkData.h>
#include "StyleBuilder.h"
#include "AbstractGeoPolygonGraphicsItem.h"
#include "GeoDataRelation.h"
// Qt
#include <qmath.h>
......
......@@ -13,7 +13,6 @@
#include "PlacemarkLayer.h"
#include <QPoint>
#include <QPainter>
#include "MarbleDebug.h"
#include "AbstractProjection.h"
......
......@@ -14,7 +14,6 @@
#include "ui_OsmRelationManagerWidget.h"
// Qt
#include <QWidget>
#include <QTreeWidget>
#include <QMenu>