Browse Source

Delete several unused #include

adaptive-webui-19844
thalieht 6 years ago
parent
commit
456270bbb1
  1. 3
      src/app/application.cpp
  2. 1
      src/base/bittorrent/session.cpp
  3. 1
      src/base/net/dnsupdater.cpp
  4. 1
      src/base/net/private/geoipdatabase.cpp
  5. 3
      src/base/net/smtp.cpp
  6. 1
      src/base/net/smtp.h
  7. 1
      src/base/preferences.cpp
  8. 1
      src/base/rss/rss_feed.cpp
  9. 1
      src/base/rss/rss_session.h
  10. 1
      src/base/settingsstorage.cpp
  11. 2
      src/base/utils/misc.cpp
  12. 1
      src/base/utils/misc.h
  13. 1
      src/base/utils/net.cpp
  14. 1
      src/base/utils/net.h
  15. 1
      src/base/utils/version.h
  16. 1
      src/gui/addnewtorrentdialog.cpp
  17. 1
      src/gui/addnewtorrentdialog.h
  18. 1
      src/gui/categoryfiltermodel.h
  19. 2
      src/gui/categoryfilterwidget.cpp
  20. 2
      src/gui/executionlogwidget.cpp
  21. 1
      src/gui/fspathedit_p.h
  22. 2
      src/gui/ipsubnetwhitelistoptionsdialog.cpp
  23. 1
      src/gui/mainwindow.h
  24. 1
      src/gui/previewselectdialog.h
  25. 1
      src/gui/properties/peerlistsortmodel.h
  26. 3
      src/gui/properties/propertieswidget.cpp
  27. 1
      src/gui/properties/speedwidget.cpp
  28. 1
      src/gui/properties/trackersadditiondialog.cpp
  29. 1
      src/gui/rss/automatedrssdownloader.cpp
  30. 2
      src/gui/scanfoldersdelegate.cpp
  31. 3
      src/gui/search/searchjobwidget.cpp
  32. 2
      src/gui/search/searchjobwidget.h
  33. 5
      src/gui/search/searchwidget.cpp
  34. 1
      src/gui/speedlimitdialog.h
  35. 1
      src/gui/tagfiltermodel.cpp
  36. 1
      src/gui/tagfiltermodel.h
  37. 1
      src/gui/tagfilterwidget.cpp
  38. 1
      src/gui/transferlistfilterswidget.cpp
  39. 1
      src/webui/webapplication.cpp

3
src/app/application.cpp

@ -33,7 +33,6 @@ @@ -33,7 +33,6 @@
#include <QAtomicInt>
#include <QDebug>
#include <QFileInfo>
#include <QLibraryInfo>
#include <QLocale>
#include <QProcess>
@ -51,8 +50,6 @@ @@ -51,8 +50,6 @@
#endif // Q_OS_WIN
#ifdef Q_OS_MAC
#include <QFileOpenEvent>
#include <QFont>
#include <QUrl>
#endif // Q_OS_MAC
#include "addnewtorrentdialog.h"
#include "gui/guiiconprovider.h"

1
src/base/bittorrent/session.cpp

@ -35,7 +35,6 @@ @@ -35,7 +35,6 @@
#include <string>
#include <QCoreApplication>
#include <QDateTime>
#include <QDebug>
#include <QDir>
#include <QHostAddress>

1
src/base/net/dnsupdater.cpp

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#include <QDebug>
#include <QRegularExpression>
#include <QStringList>
#include <QUrlQuery>
#include "base/logger.h"

1
src/base/net/private/geoipdatabase.cpp

@ -29,7 +29,6 @@ @@ -29,7 +29,6 @@
#include <QDateTime>
#include <QDebug>
#include <QFile>
#include <QHash>
#include <QHostAddress>
#include <QVariant>

3
src/base/net/smtp.cpp

@ -34,12 +34,9 @@ @@ -34,12 +34,9 @@
#include <QCryptographicHash>
#include <QDebug>
#include <QHostAddress>
#include <QHostInfo>
#include <QNetworkInterface>
#include <QStringList>
#include <QTextCodec>
#include <QTextStream>
#ifndef QT_NO_OPENSSL
#include <QSslSocket>
#else

1
src/base/net/smtp.h

@ -46,7 +46,6 @@ class QSslSocket; @@ -46,7 +46,6 @@ class QSslSocket;
class QTcpSocket;
#endif
class QTextCodec;
class QTextStream;
namespace Net
{

1
src/base/preferences.cpp

@ -33,7 +33,6 @@ @@ -33,7 +33,6 @@
#include <QDir>
#include <QLocale>
#include <QMutableListIterator>
#include <QPair>
#include <QSettings>
#ifndef DISABLE_GUI

1
src/base/rss/rss_feed.cpp

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#include "rss_feed.h"
#include <QCryptographicHash>
#include <QDebug>
#include <QDir>
#include <QJsonArray>

1
src/base/rss/rss_session.h

@ -65,7 +65,6 @@ @@ -65,7 +65,6 @@
#include <QHash>
#include <QObject>
#include <QPointer>
#include <QStringList>
#include <QTimer>
class QThread;

1
src/base/settingsstorage.cpp

@ -32,7 +32,6 @@ @@ -32,7 +32,6 @@
#include <memory>
#include <QFile>
#include <QHash>
#include <QStringList>
#include "logger.h"
#include "profile.h"

2
src/base/utils/misc.cpp

@ -45,9 +45,7 @@ @@ -45,9 +45,7 @@
#endif
#include <QByteArray>
#include <QDateTime>
#include <QDebug>
#include <QDir>
#include <QFileInfo>
#include <QProcess>
#include <QRegularExpression>

1
src/base/utils/misc.h

@ -40,7 +40,6 @@ @@ -40,7 +40,6 @@
#endif
#include <QDir>
#include <QFile>
#include <QPoint>
#include <QSize>
#include <QString>

1
src/base/utils/net.cpp

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#include <QHostAddress>
#include <QString>
#include <QStringList>
namespace Utils
{

1
src/base/utils/net.h

@ -34,7 +34,6 @@ @@ -34,7 +34,6 @@
class QHostAddress;
class QString;
class QStringList;
namespace Utils
{

1
src/base/utils/version.h

@ -34,7 +34,6 @@ @@ -34,7 +34,6 @@
#include <QDebug>
#include <QString>
#include <QStringList>
namespace Utils
{

1
src/gui/addnewtorrentdialog.cpp

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#include <QDebug>
#include <QFile>
#include <QFileDialog>
#include <QMenu>
#include <QPushButton>
#include <QString>

1
src/gui/addnewtorrentdialog.h

@ -32,7 +32,6 @@ @@ -32,7 +32,6 @@
#include <QDialog>
#include <QScopedPointer>
#include <QShortcut>
#include <QUrl>
#include "base/bittorrent/addtorrentparams.h"
#include "base/bittorrent/infohash.h"

1
src/gui/categoryfiltermodel.h

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#define CATEGORYFILTERMODEL_H
#include <QAbstractItemModel>
#include <QHash>
#include <QModelIndex>
namespace BitTorrent

2
src/gui/categoryfilterwidget.cpp

@ -30,9 +30,7 @@ @@ -30,9 +30,7 @@
#include <QAction>
#include <QHeaderView>
#include <QLayout>
#include <QMenu>
#include <QMessageBox>
#include "base/bittorrent/session.h"
#include "base/global.h"

2
src/gui/executionlogwidget.cpp

@ -30,8 +30,6 @@ @@ -30,8 +30,6 @@
#include <QColor>
#include <QDateTime>
#include <QLabel>
#include <QListWidgetItem>
#include <QPalette>
#include "guiiconprovider.h"

1
src/gui/fspathedit_p.h

@ -33,7 +33,6 @@ @@ -33,7 +33,6 @@
#include <QComboBox>
#include <QCompleter>
#include <QContextMenuEvent>
#include <QDir>
#include <QFileIconProvider>
#include <QFileSystemModel>
#include <QKeyEvent>

2
src/gui/ipsubnetwhitelistoptionsdialog.cpp

@ -28,9 +28,7 @@ @@ -28,9 +28,7 @@
#include "ipsubnetwhitelistoptionsdialog.h"
#include <QHostAddress>
#include <QMessageBox>
#include <QPair>
#include <QSortFilterProxyModel>
#include <QStringListModel>

1
src/gui/mainwindow.h

@ -38,7 +38,6 @@ @@ -38,7 +38,6 @@
class QCloseEvent;
class QFileSystemWatcher;
class QShortcut;
class QSplitter;
class QTabWidget;
class QTimer;

1
src/gui/previewselectdialog.h

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#define PREVIEWSELECTDIALOG_H
#include <QDialog>
#include <QList>
#include "base/bittorrent/torrenthandle.h"
#include "base/settingvalue.h"

1
src/gui/properties/peerlistsortmodel.h

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#define PEERLISTSORTMODEL_H
#include <QSortFilterProxyModel>
#include <QStringList>
#include "peerlistdelegate.h"

3
src/gui/properties/propertieswidget.cpp

@ -29,9 +29,7 @@ @@ -29,9 +29,7 @@
#include "propertieswidget.h"
#include <QAction>
#include <QBitArray>
#include <QDebug>
#include <QFileDialog>
#include <QHeaderView>
#include <QListWidgetItem>
#include <QMenu>
@ -39,7 +37,6 @@ @@ -39,7 +37,6 @@
#include <QStackedWidget>
#include <QThread>
#include <QTimer>
#include <QVBoxLayout>
#include "base/bittorrent/session.h"
#include "base/preferences.h"

1
src/gui/properties/speedwidget.cpp

@ -33,7 +33,6 @@ @@ -33,7 +33,6 @@
#include <QLabel>
#include <QMenu>
#include <QSignalMapper>
#include <QThread>
#include <QTimer>
#include <libtorrent/session_status.hpp>

1
src/gui/properties/trackersadditiondialog.cpp

@ -31,7 +31,6 @@ @@ -31,7 +31,6 @@
#include <QBuffer>
#include <QMessageBox>
#include <QStringList>
#include <QUrl>
#include "base/bittorrent/torrenthandle.h"
#include "base/bittorrent/trackerentry.h"

1
src/gui/rss/automatedrssdownloader.cpp

@ -36,7 +36,6 @@ @@ -36,7 +36,6 @@
#include <QMessageBox>
#include <QPair>
#include <QRegularExpression>
#include <QSet>
#include <QShortcut>
#include <QSignalBlocker>
#include <QString>

2
src/gui/scanfoldersdelegate.cpp

@ -31,8 +31,6 @@ @@ -31,8 +31,6 @@
#include <QComboBox>
#include <QDebug>
#include <QFileDialog>
#include <QItemSelectionModel>
#include <QPainter>
#include <QTreeView>
#include "base/bittorrent/session.h"

3
src/gui/search/searchjobwidget.cpp

@ -32,16 +32,13 @@ @@ -32,16 +32,13 @@
#include <QApplication>
#include <QClipboard>
#include <QDesktopServices>
#include <QDir>
#include <QHeaderView>
#include <QLabel>
#include <QMenu>
#include <QPalette>
#include <QSortFilterProxyModel>
#include <QStandardItemModel>
#include <QTableView>
#include <QTreeView>
#include <QVBoxLayout>
#include "base/bittorrent/session.h"
#include "base/preferences.h"

2
src/gui/search/searchjobwidget.h

@ -35,11 +35,9 @@ @@ -35,11 +35,9 @@
#define URL_COLUMN 5
class QHeaderView;
class QLabel;
class QModelIndex;
class QStandardItem;
class QStandardItemModel;
class QVBoxLayout;
template <typename T> class CachedSettingValue;

5
src/gui/search/searchwidget.cpp

@ -36,10 +36,7 @@ @@ -36,10 +36,7 @@
#endif
#include <QDebug>
#include <QDir>
#include <QFileDialog>
#include <QHeaderView>
#include <QMenu>
#include <QMessageBox>
#include <QMimeData>
#include <QProcess>
@ -47,9 +44,7 @@ @@ -47,9 +44,7 @@
#include <QSignalMapper>
#include <QSortFilterProxyModel>
#include <QStandardItemModel>
#include <QSystemTrayIcon>
#include <QTextStream>
#include <QTimer>
#include <QTreeView>
#include "base/bittorrent/session.h"

1
src/gui/speedlimitdialog.h

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#define SPEEDLIMITDIALOG_H
#include <QDialog>
#include <QList>
#include "base/bittorrent/session.h"
#include "base/utils/misc.h"

1
src/gui/tagfiltermodel.cpp

@ -29,7 +29,6 @@ @@ -29,7 +29,6 @@
#include "tagfiltermodel.h"
#include <QDebug>
#include <QHash>
#include <QIcon>
#include "base/bittorrent/session.h"

1
src/gui/tagfiltermodel.h

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#define TAGFILTERMODEL_H
#include <QAbstractListModel>
#include <QHash>
#include <QModelIndex>
#include <QSet>
#include <QVector>

1
src/gui/tagfilterwidget.cpp

@ -31,7 +31,6 @@ @@ -31,7 +31,6 @@
#include <QAction>
#include <QDebug>
#include <QHeaderView>
#include <QLayout>
#include <QMenu>
#include <QMessageBox>

1
src/gui/transferlistfilterswidget.cpp

@ -33,7 +33,6 @@ @@ -33,7 +33,6 @@
#include <QIcon>
#include <QListWidgetItem>
#include <QMenu>
#include <QMessageBox>
#include <QScrollArea>
#include <QUrl>
#include <QVBoxLayout>

1
src/webui/webapplication.cpp

@ -43,7 +43,6 @@ @@ -43,7 +43,6 @@
#include <QMimeDatabase>
#include <QMimeType>
#include <QRegExp>
#include <QTimer>
#include <QUrl>
#include "base/global.h"

Loading…
Cancel
Save