Commit 9393335c authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Clean headers in Git.



Ran script to remove inludes on a trial-and-error basis and
manually corrected it.

Change-Id: Ib2afbc530760684db96888b927c5153b29fe24aa
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent ffb2f2cc
...@@ -37,12 +37,10 @@ ...@@ -37,12 +37,10 @@
#include "ui_branchdialog.h" #include "ui_branchdialog.h"
#include "stashdialog.h" // Label helpers #include "stashdialog.h" // Label helpers
#include <utils/checkablemessagebox.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <vcsbase/vcsbaseoutputwindow.h> #include <vcsbase/vcsbaseoutputwindow.h>
#include <QItemSelectionModel> #include <QItemSelectionModel>
#include <QPushButton>
#include <QMessageBox> #include <QMessageBox>
#include <QList> #include <QList>
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#define BRANCHDIALOG_H #define BRANCHDIALOG_H
#include <QDialog> #include <QDialog>
#include <QItemSelection>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QPushButton; class QPushButton;
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#include <vcsbase/vcsbaseoutputwindow.h> #include <vcsbase/vcsbaseoutputwindow.h>
#include <QFont> #include <QFont>
#include <QRegExp>
#include <QTimer>
namespace Git { namespace Git {
namespace Internal { namespace Internal {
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#define BRANCHMODEL_H #define BRANCHMODEL_H
#include <QAbstractListModel> #include <QAbstractListModel>
#include <QList>
#include <QVariant> #include <QVariant>
namespace Git { namespace Git {
......
...@@ -33,8 +33,6 @@ ...@@ -33,8 +33,6 @@
#include <QProcess> #include <QProcess>
#include <QFormLayout> #include <QFormLayout>
#include <QSpacerItem>
#include <QFormLayout>
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QPushButton> #include <QPushButton>
#include <QLabel> #include <QLabel>
......
...@@ -32,9 +32,6 @@ ...@@ -32,9 +32,6 @@
#include "gitclient.h" #include "gitclient.h"
#include <vcsbase/checkoutjobs.h> #include <vcsbase/checkoutjobs.h>
#include <utils/qtcassert.h>
#include <QCheckBox>
namespace Git { namespace Git {
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include <QCoreApplication> #include <QCoreApplication>
#include <QDebug> #include <QDebug>
#include <QRegExp>
namespace Git { namespace Git {
namespace Internal { namespace Internal {
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include "gerritmodel.h" #include "gerritmodel.h"
#include "gerritparameters.h" #include "gerritparameters.h"
#include <utils/filterlineedit.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
...@@ -42,16 +41,12 @@ ...@@ -42,16 +41,12 @@
#include <QLabel> #include <QLabel>
#include <QTextBrowser> #include <QTextBrowser>
#include <QTreeView> #include <QTreeView>
#include <QHeaderView>
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <QPushButton> #include <QPushButton>
#include <QDesktopServices> #include <QDesktopServices>
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>
#include <QGroupBox> #include <QGroupBox>
#include <QUrl> #include <QUrl>
#include <QClipboard>
#include <QApplication>
#include <QProcess>
#include <QStringListModel> #include <QStringListModel>
#include <QCompleter> #include <QCompleter>
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include "gerritmodel.h" #include "gerritmodel.h"
#include "gerritparameters.h" #include "gerritparameters.h"
#include <coreplugin/vcsmanager.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <coreplugin/progressmanager/progressmanager.h> #include <coreplugin/progressmanager/progressmanager.h>
#include <coreplugin/progressmanager/futureprogress.h> #include <coreplugin/progressmanager/futureprogress.h>
...@@ -40,9 +39,7 @@ ...@@ -40,9 +39,7 @@
#include <QStringList> #include <QStringList>
#include <QProcess> #include <QProcess>
#include <QVariant> #include <QVariant>
#include <QUrl>
#include <QTextStream> #include <QTextStream>
#include <QDesktopServices>
#include <QMessageBox> #include <QMessageBox>
#include <QPushButton> #include <QPushButton>
#include <QDebug> #include <QDebug>
......
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
#include <QStandardItemModel> #include <QStandardItemModel>
#include <QSharedPointer> #include <QSharedPointer>
#include <QMetaType>
#include <QPair>
#include <QDateTime> #include <QDateTime>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#include <QSpinBox> #include <QSpinBox>
#include <QCheckBox> #include <QCheckBox>
#include <QFormLayout> #include <QFormLayout>
#include <QVBoxLayout>
namespace Gerrit { namespace Gerrit {
namespace Internal { namespace Internal {
......
...@@ -32,10 +32,8 @@ ...@@ -32,10 +32,8 @@
#include "../gitplugin.h" #include "../gitplugin.h"
#include "../gitclient.h" #include "../gitclient.h"
#include <coreplugin/icore.h>
#include <QDir> #include <QDir>
#include <QMessageBox>
namespace Gerrit { namespace Gerrit {
namespace Internal { namespace Internal {
......
...@@ -39,23 +39,16 @@ ...@@ -39,23 +39,16 @@
#include <vcsbase/submitfilemodel.h> #include <vcsbase/submitfilemodel.h>
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/coreconstants.h>
#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <coreplugin/messagemanager.h>
#include <coreplugin/progressmanager/progressmanager.h>
#include <coreplugin/vcsmanager.h> #include <coreplugin/vcsmanager.h>
#include <coreplugin/id.h> #include <coreplugin/id.h>
#include <coreplugin/documentmanager.h>
#include <coreplugin/iversioncontrol.h> #include <coreplugin/iversioncontrol.h>
#include <texteditor/itexteditor.h>
#include <utils/hostosinfo.h> #include <utils/hostosinfo.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <utils/qtcprocess.h> #include <utils/qtcprocess.h>
#include <utils/synchronousprocess.h> #include <utils/synchronousprocess.h>
#include <utils/environment.h>
#include <utils/fileutils.h> #include <utils/fileutils.h>
#include <vcsbase/command.h> #include <vcsbase/command.h>
#include <vcsbase/vcsbaseeditor.h> #include <vcsbase/vcsbaseeditor.h>
...@@ -71,7 +64,6 @@ ...@@ -71,7 +64,6 @@
#include <QSignalMapper> #include <QSignalMapper>
#include <QTime> #include <QTime>
#include <QComboBox>
#include <QMessageBox> #include <QMessageBox>
#include <QPushButton> #include <QPushButton>
#include <QToolButton> #include <QToolButton>
......
...@@ -30,25 +30,18 @@ ...@@ -30,25 +30,18 @@
#include "giteditor.h" #include "giteditor.h"
#include "annotationhighlighter.h" #include "annotationhighlighter.h"
#include "gitconstants.h"
#include "gitplugin.h" #include "gitplugin.h"
#include "gitclient.h" #include "gitclient.h"
#include "gitsettings.h" #include "gitsettings.h"
#include <QTextCodec>
#include <coreplugin/editormanager/editormanager.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <vcsbase/diffhighlighter.h>
#include <vcsbase/vcsbaseoutputwindow.h> #include <vcsbase/vcsbaseoutputwindow.h>
#include <QDebug> #include <QDebug>
#include <QDir>
#include <QFileInfo> #include <QFileInfo>
#include <QRegExp> #include <QRegExp>
#include <QSet> #include <QSet>
#include <QTextStream>
#include <QTextCursor> #include <QTextCursor>
#include <QTextEdit>
#include <QTextBlock> #include <QTextBlock>
#define CHANGE_PATTERN "[a-f0-9]{7,40}" #define CHANGE_PATTERN "[a-f0-9]{7,40}"
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include "gitorious.h" #include "gitorious.h"
#include <QDebug> #include <QDebug>
#include <QCoreApplication>
#include <QXmlStreamReader> #include <QXmlStreamReader>
#include <QSettings> #include <QSettings>
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
****************************************************************************/ ****************************************************************************/
#include "gitoriousprojectwidget.h" #include "gitoriousprojectwidget.h"
#include "gitorioushostwizardpage.h"
#include "gitorious.h" #include "gitorious.h"
#include "ui_gitoriousprojectwidget.h" #include "ui_gitoriousprojectwidget.h"
...@@ -42,7 +41,6 @@ ...@@ -42,7 +41,6 @@
#include <QStandardItem> #include <QStandardItem>
#include <QItemSelectionModel> #include <QItemSelectionModel>
#include <QDesktopServices> #include <QDesktopServices>
#include <QIcon>
#include <QStyle> #include <QStyle>
enum { enum {
......
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
#include "gitorioushostwizardpage.h" #include "gitorioushostwizardpage.h"
#include "gitorious.h" #include "gitorious.h"
#include <utils/qtcassert.h>
#include <QStackedWidget> #include <QStackedWidget>
#include <QVBoxLayout> #include <QVBoxLayout>
......
...@@ -33,8 +33,6 @@ ...@@ -33,8 +33,6 @@
#include "gitorious.h" #include "gitorious.h"
#include "ui_gitoriousrepositorywizardpage.h" #include "ui_gitoriousrepositorywizardpage.h"
#include <utils/qtcassert.h>
#include <QDebug> #include <QDebug>
#include <QStandardItemModel> #include <QStandardItemModel>
......
...@@ -51,7 +51,6 @@ ...@@ -51,7 +51,6 @@
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <coreplugin/coreconstants.h> #include <coreplugin/coreconstants.h>
#include <coreplugin/documentmanager.h> #include <coreplugin/documentmanager.h>
#include <coreplugin/messagemanager.h>
#include <coreplugin/actionmanager/actionmanager.h> #include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/actionmanager/actioncontainer.h> #include <coreplugin/actionmanager/actioncontainer.h>
#include <coreplugin/actionmanager/command.h> #include <coreplugin/actionmanager/command.h>
...@@ -62,7 +61,6 @@ ...@@ -62,7 +61,6 @@
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <utils/parameteraction.h> #include <utils/parameteraction.h>
#include <utils/fileutils.h>
#include <vcsbase/basevcseditorfactory.h> #include <vcsbase/basevcseditorfactory.h>
#include <vcsbase/submitfilemodel.h> #include <vcsbase/submitfilemodel.h>
...@@ -79,7 +77,6 @@ ...@@ -79,7 +77,6 @@
#include <QAction> #include <QAction>
#include <QFileDialog> #include <QFileDialog>
#include <QMenu>
#include <QMessageBox> #include <QMessageBox>
static const unsigned minimumRequiredVersion = 0x010702; static const unsigned minimumRequiredVersion = 0x010702;
...@@ -1284,8 +1281,6 @@ GitClient *GitPlugin::gitClient() const ...@@ -1284,8 +1281,6 @@ GitClient *GitPlugin::gitClient() const
#ifdef WITH_TESTS #ifdef WITH_TESTS
#include <QTest> #include <QTest>
#include <QTextBlock>
#include <QTextDocument>
Q_DECLARE_METATYPE(FileStates) Q_DECLARE_METATYPE(FileStates)
......
...@@ -34,11 +34,6 @@ ...@@ -34,11 +34,6 @@
#include "vcsbase/vcsbaseplugin.h" #include "vcsbase/vcsbaseplugin.h"
#include <coreplugin/editormanager/ieditorfactory.h>
#include <extensionsystem/iplugin.h>
#include <QObject>
#include <QProcess>
#include <QStringList> #include <QStringList>
#include <QPointer> #include <QPointer>
#include <QPair> #include <QPair>
...@@ -51,6 +46,7 @@ class QFileInfo; ...@@ -51,6 +46,7 @@ class QFileInfo;
QT_END_NAMESPACE QT_END_NAMESPACE
namespace Core { namespace Core {
class IEditor;
class IEditorFactory; class IEditorFactory;
class Command; class Command;
class Context; class Context;
......
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
#include <vcsbase/vcsbaseclientsettings.h> #include <vcsbase/vcsbaseclientsettings.h>
#include <QStringList>
namespace Git { namespace Git {
namespace Internal { namespace Internal {
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include "gitsubmiteditor.h" #include "gitsubmiteditor.h"
#include "commitdata.h" #include "commitdata.h"
#include "gitclient.h" #include "gitclient.h"
#include "gitconstants.h"
#include "gitplugin.h" #include "gitplugin.h"
#include "gitsubmiteditorwidget.h" #include "gitsubmiteditorwidget.h"
......
...@@ -32,10 +32,8 @@ ...@@ -32,10 +32,8 @@
#include <texteditor/texteditorsettings.h> #include <texteditor/texteditorsettings.h>
#include <texteditor/fontsettings.h> #include <texteditor/fontsettings.h>
#include <texteditor/texteditorconstants.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QLineEdit>
#include <QRegExpValidator> #include <QRegExpValidator>
#include <QSyntaxHighlighter> #include <QSyntaxHighlighter>
#include <QTextEdit> #include <QTextEdit>
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include "gitutils.h" #include "gitutils.h"
#include <QDebug> #include <QDebug>
#include <QStringList>
#include <QInputDialog> #include <QInputDialog>
#include <QLineEdit> #include <QLineEdit>
......
...@@ -29,10 +29,8 @@ ...@@ -29,10 +29,8 @@
#include "gitversioncontrol.h" #include "gitversioncontrol.h"
#include "gitclient.h" #include "gitclient.h"
#include "gitplugin.h"
#include "gitutils.h" #include "gitutils.h"
#include <utils/qtcassert.h>
#include <vcsbase/vcsbaseconstants.h> #include <vcsbase/vcsbaseconstants.h>
#include <QFileInfo> #include <QFileInfo>
......
...@@ -39,7 +39,6 @@ ...@@ -39,7 +39,6 @@
#include <QItemSelectionModel> #include <QItemSelectionModel>
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QComboBox> #include <QComboBox>
#include <QDir>
namespace Git { namespace Git {
namespace Internal { namespace Internal {
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include <vcsbase/vcsbaseoutputwindow.h> #include <vcsbase/vcsbaseoutputwindow.h>
#include <QFile>
#include <QMessageBox> #include <QMessageBox>
#include <QProcess> #include <QProcess>
#include <QPushButton> #include <QPushButton>
......
...@@ -38,8 +38,6 @@ ...@@ -38,8 +38,6 @@
#include <vcsbase/vcsbaseoutputwindow.h> #include <vcsbase/vcsbaseoutputwindow.h>
#include <QItemSelectionModel>
#include <QPushButton>
#include <QMessageBox> #include <QMessageBox>
namespace Git { namespace Git {
......
...@@ -34,14 +34,10 @@ ...@@ -34,14 +34,10 @@
#include <vcsbase/vcsbaseconstants.h> #include <vcsbase/vcsbaseconstants.h>
#include <utils/hostosinfo.h> #include <utils/hostosinfo.h>
#include <utils/pathchooser.h>
#include <QCoreApplication>
#include <QDir> #include <QDir>
#include <QFileInfo>
#include <QDebug> #include <QDebug>
#include <QTextStream> #include <QTextStream>
#include <QProcessEnvironment>
#include <QMessageBox> #include <QMessageBox>
namespace Git { namespace Git {
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#define SETTINGSPAGE_H #define SETTINGSPAGE_H
#include <QWidget> #include <QWidget>
#include <QPointer>
#include <vcsbase/vcsbaseoptionspage.h> #include <vcsbase/vcsbaseoptionspage.h>
......