Browse Source

Remove some unused #include

adaptive-webui-19844
thalieht 6 years ago
parent
commit
9995967fbf
  1. 1
      src/base/bittorrent/private/resumedatasavingmanager.cpp
  2. 1
      src/base/bittorrent/torrentcreatorthread.cpp
  3. 1
      src/base/bittorrent/trackerentry.h
  4. 2
      src/base/filesystemwatcher.cpp
  5. 1
      src/base/net/downloadmanager.h
  6. 1
      src/base/net/geoipmanager.cpp
  7. 1
      src/base/net/geoipmanager.h
  8. 1
      src/base/net/private/geoipdatabase.cpp
  9. 1
      src/base/net/smtp.h
  10. 1
      src/base/preferences.cpp
  11. 1
      src/base/rss/rss_autodownloader.cpp
  12. 1
      src/base/rss/rss_autodownloadrule.cpp
  13. 2
      src/base/rss/rss_session.cpp
  14. 1
      src/base/search/searchpluginmanager.cpp
  15. 1
      src/base/utils/fs.cpp
  16. 1
      src/base/utils/password.cpp
  17. 1
      src/gui/addnewtorrentdialog.cpp
  18. 1
      src/gui/advancedsettings.cpp
  19. 3
      src/gui/autoexpandabledialog.cpp
  20. 1
      src/gui/categoryfilterwidget.cpp
  21. 1
      src/gui/executionlogwidget.cpp
  22. 1
      src/gui/fspathedit.h
  23. 2
      src/gui/guiiconprovider.cpp
  24. 6
      src/gui/mainwindow.cpp
  25. 2
      src/gui/optionsdialog.cpp
  26. 1
      src/gui/programupdater.cpp
  27. 1
      src/gui/programupdater.h
  28. 2
      src/gui/properties/peerlistwidget.cpp
  29. 1
      src/gui/properties/proplistdelegate.cpp
  30. 1
      src/gui/properties/trackerlistwidget.cpp
  31. 2
      src/gui/properties/trackersadditiondialog.cpp
  32. 1
      src/gui/rss/automatedrssdownloader.cpp
  33. 2
      src/gui/rss/rsswidget.cpp
  34. 1
      src/gui/rss/rsswidget.h
  35. 2
      src/gui/search/searchlistdelegate.cpp
  36. 12
      src/gui/search/searchwidget.cpp
  37. 1
      src/gui/statusbar.cpp
  38. 2
      src/gui/tagfilterwidget.cpp
  39. 1
      src/gui/torrentcontentmodel.cpp
  40. 4
      src/gui/torrentcontentmodelitem.cpp
  41. 1
      src/gui/torrentcreatordialog.cpp
  42. 4
      src/gui/transferlistfilterswidget.cpp
  43. 1
      src/gui/transferlistmodel.cpp
  44. 2
      src/webui/api/serialize/serialize_torrent.cpp
  45. 1
      src/webui/api/synccontroller.cpp

1
src/base/bittorrent/private/resumedatasavingmanager.cpp

@ -29,7 +29,6 @@ @@ -29,7 +29,6 @@
#include "resumedatasavingmanager.h"
#include <QByteArray>
#include <QDebug>
#include <QSaveFile>
#include "base/logger.h"

1
src/base/bittorrent/torrentcreatorthread.cpp

@ -43,7 +43,6 @@ @@ -43,7 +43,6 @@
#include "base/global.h"
#include "base/utils/fs.h"
#include "base/utils/misc.h"
#include "base/utils/string.h"
namespace

1
src/base/bittorrent/trackerentry.h

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#define BITTORRENT_TRACKERENTRY_H
#include <libtorrent/announce_entry.hpp>
#include <libtorrent/torrent_info.hpp>
class QString;

2
src/base/filesystemwatcher.cpp

@ -37,11 +37,9 @@ @@ -37,11 +37,9 @@
#endif
#include "base/algorithm.h"
#include "base/bittorrent/magneturi.h"
#include "base/bittorrent/torrentinfo.h"
#include "base/global.h"
#include "base/logger.h"
#include "base/preferences.h"
#include "base/utils/fs.h"
namespace

1
src/base/net/downloadmanager.h

@ -32,7 +32,6 @@ @@ -32,7 +32,6 @@
#include <QHash>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QObject>
#include <QQueue>
#include <QSet>

1
src/base/net/geoipmanager.cpp

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#include "geoipmanager.h"
#include <QDateTime>
#include <QDebug>
#include <QDir>
#include <QFile>
#include <QHostAddress>

1
src/base/net/geoipmanager.h

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#ifndef NET_GEOIPMANAGER_H
#define NET_GEOIPMANAGER_H
#include <QCache>
#include <QObject>
class QHostAddress;

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

@ -32,7 +32,6 @@ @@ -32,7 +32,6 @@
#include <QHostAddress>
#include <QVariant>
#include "base/types.h"
#include "geoipdatabase.h"
namespace

1
src/base/net/smtp.h

@ -36,7 +36,6 @@ @@ -36,7 +36,6 @@
#include <QAbstractSocket>
#include <QByteArray>
#include <QHash>
#include <QMetaType>
#include <QObject>
#include <QString>

1
src/base/preferences.cpp

@ -59,7 +59,6 @@ @@ -59,7 +59,6 @@
#include "global.h"
#include "settingsstorage.h"
#include "utils/fs.h"
#include "utils/misc.h"
Preferences *Preferences::m_instance = nullptr;

1
src/base/rss/rss_autodownloader.cpp

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#include <QDataStream>
#include <QDebug>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonValue>

1
src/base/rss/rss_autodownloadrule.cpp

@ -32,7 +32,6 @@ @@ -32,7 +32,6 @@
#include <algorithm>
#include <QDebug>
#include <QDir>
#include <QHash>
#include <QJsonArray>
#include <QJsonObject>

2
src/base/rss/rss_session.cpp

@ -31,14 +31,12 @@ @@ -31,14 +31,12 @@
#include "rss_session.h"
#include <QDebug>
#include <QDir>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonValue>
#include <QSaveFile>
#include <QString>
#include <QThread>
#include <QVariantHash>
#include "../asyncfilestorage.h"
#include "../global.h"

1
src/base/search/searchpluginmanager.cpp

@ -31,7 +31,6 @@ @@ -31,7 +31,6 @@
#include <memory>
#include <QDebug>
#include <QDir>
#include <QDirIterator>
#include <QDomDocument>

1
src/base/utils/fs.cpp

@ -49,7 +49,6 @@ @@ -49,7 +49,6 @@
#include <unistd.h>
#endif
#include <QCoreApplication>
#include <QDebug>
#include <QDir>
#include <QDirIterator>

1
src/base/utils/password.cpp

@ -37,7 +37,6 @@ @@ -37,7 +37,6 @@
#include "bytearray.h"
#include "random.h"
#include "string.h"
namespace Utils
{

1
src/gui/addnewtorrentdialog.cpp

@ -43,7 +43,6 @@ @@ -43,7 +43,6 @@
#include "base/bittorrent/torrenthandle.h"
#include "base/global.h"
#include "base/net/downloadmanager.h"
#include "base/preferences.h"
#include "base/settingsstorage.h"
#include "base/torrentfileguard.h"
#include "base/utils/fs.h"

1
src/gui/advancedsettings.cpp

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#include <limits>
#include <QFont>
#include <QHeaderView>
#include <QHostAddress>
#include <QNetworkInterface>

3
src/gui/autoexpandabledialog.cpp

@ -28,9 +28,6 @@ @@ -28,9 +28,6 @@
#include "autoexpandabledialog.h"
#include <QDesktopWidget>
#include "mainwindow.h"
#include "ui_autoexpandabledialog.h"
#include "utils.h"

1
src/gui/categoryfilterwidget.cpp

@ -29,7 +29,6 @@ @@ -29,7 +29,6 @@
#include "categoryfilterwidget.h"
#include <QAction>
#include <QHeaderView>
#include <QMenu>
#include "base/bittorrent/session.h"

1
src/gui/executionlogwidget.cpp

@ -28,7 +28,6 @@ @@ -28,7 +28,6 @@
#include "executionlogwidget.h"
#include <QColor>
#include <QDateTime>
#include <QPalette>

1
src/gui/fspathedit.h

@ -29,7 +29,6 @@ @@ -29,7 +29,6 @@
#ifndef QBT_FSPATHEDIT_H
#define QBT_FSPATHEDIT_H
#include <QScopedPointer>
#include <QWidget>
namespace Private

2
src/gui/guiiconprovider.cpp

@ -31,9 +31,7 @@ @@ -31,9 +31,7 @@
#include <QHash>
#include <QIcon>
#include <QVector>
#if (defined(Q_OS_UNIX) && !defined(Q_OS_MAC))
#include <QDir>
#include <QFile>
#endif

6
src/gui/mainwindow.cpp

@ -28,7 +28,6 @@ @@ -28,7 +28,6 @@
#include "mainwindow.h"
#include <QClipboard>
#include <QCloseEvent>
#include <QDebug>
#include <QDesktopServices>
@ -38,7 +37,6 @@ @@ -38,7 +37,6 @@
#include <QMimeData>
#include <QProcess>
#include <QPushButton>
#include <QScrollBar>
#include <QShortcut>
#include <QSplitter>
#include <QStatusBar>
@ -71,7 +69,6 @@ @@ -71,7 +69,6 @@
#include "base/utils/password.h"
#include "aboutdialog.h"
#include "addnewtorrentdialog.h"
#include "application.h"
#include "autoexpandabledialog.h"
#include "cookiesdialog.h"
#include "downloadfromurldialog.h"
@ -96,9 +93,6 @@ @@ -96,9 +93,6 @@
#include "ui_mainwindow.h"
#include "utils.h"
#ifdef Q_OS_WIN
#include "base/net/downloadmanager.h"
#endif
#ifdef Q_OS_MAC
#include "macutilities.h"
#endif

2
src/gui/optionsdialog.cpp

@ -35,7 +35,6 @@ @@ -35,7 +35,6 @@
#include <QCloseEvent>
#include <QDebug>
#include <QDesktopServices>
#include <QDesktopWidget>
#include <QDialogButtonBox>
#include <QEvent>
#include <QFileDialog>
@ -45,7 +44,6 @@ @@ -45,7 +44,6 @@
#include "base/bittorrent/session.h"
#include "base/global.h"
#include "base/http/server.h"
#include "base/net/dnsupdater.h"
#include "base/net/portforwarder.h"
#include "base/net/proxyconfigurationmanager.h"

1
src/gui/programupdater.cpp

@ -36,7 +36,6 @@ @@ -36,7 +36,6 @@
#include <QXmlStreamReader>
#include "base/net/downloadmanager.h"
#include "base/utils/fs.h"
namespace
{

1
src/gui/programupdater.h

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#define PROGRAMUPDATER_H
#include <QObject>
#include <QUrl>
namespace Net
{

2
src/gui/properties/peerlistwidget.cpp

@ -46,13 +46,11 @@ @@ -46,13 +46,11 @@
#include "base/net/geoipmanager.h"
#include "base/net/reverseresolution.h"
#include "base/preferences.h"
#include "base/unicodestrings.h"
#include "guiiconprovider.h"
#include "peerlistdelegate.h"
#include "peerlistsortmodel.h"
#include "peersadditiondialog.h"
#include "propertieswidget.h"
#include "speedlimitdialog.h"
PeerListWidget::PeerListWidget(PropertiesWidget *parent)
: QTreeView(parent)

1
src/gui/properties/proplistdelegate.cpp

@ -45,7 +45,6 @@ @@ -45,7 +45,6 @@
#include "base/utils/misc.h"
#include "base/utils/string.h"
#include "propertieswidget.h"
#include "torrentcontentmodelitem.h"
namespace
{

1
src/gui/properties/trackerlistwidget.cpp

@ -49,7 +49,6 @@ @@ -49,7 +49,6 @@
#include "base/bittorrent/trackerentry.h"
#include "base/global.h"
#include "base/preferences.h"
#include "base/utils/misc.h"
#include "autoexpandabledialog.h"
#include "guiiconprovider.h"
#include "propertieswidget.h"

2
src/gui/properties/trackersadditiondialog.cpp

@ -36,8 +36,6 @@ @@ -36,8 +36,6 @@
#include "base/bittorrent/trackerentry.h"
#include "base/global.h"
#include "base/net/downloadmanager.h"
#include "base/utils/fs.h"
#include "base/utils/misc.h"
#include "guiiconprovider.h"
#include "ui_trackersadditiondialog.h"

1
src/gui/rss/automatedrssdownloader.cpp

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#include "automatedrssdownloader.h"
#include <QCursor>
#include <QDebug>
#include <QFileDialog>
#include <QMenu>
#include <QMessageBox>

2
src/gui/rss/rsswidget.cpp

@ -31,14 +31,12 @@ @@ -31,14 +31,12 @@
#include "rsswidget.h"
#include <QClipboard>
#include <QDebug>
#include <QDesktopServices>
#include <QDragMoveEvent>
#include <QMenu>
#include <QMessageBox>
#include <QRegularExpression>
#include <QShortcut>
#include <QStandardItemModel>
#include <QString>
#include "base/bittorrent/session.h"

1
src/gui/rss/rsswidget.h

@ -31,7 +31,6 @@ @@ -31,7 +31,6 @@
#ifndef RSSWIDGET_H
#define RSSWIDGET_H
#include <QPointer>
#include <QWidget>
class QShortcut;

2
src/gui/search/searchlistdelegate.cpp

@ -28,10 +28,8 @@ @@ -28,10 +28,8 @@
#include "searchlistdelegate.h"
#include <QCoreApplication>
#include <QModelIndex>
#include <QPainter>
#include <QProgressBar>
#include <QStyleOptionViewItem>
#include "base/utils/misc.h"

12
src/gui/search/searchwidget.cpp

@ -36,30 +36,18 @@ @@ -36,30 +36,18 @@
#endif
#include <QDebug>
#include <QHeaderView>
#include <QMessageBox>
#include <QMimeData>
#include <QProcess>
#include <QRegularExpression>
#include <QShortcut>
#include <QSortFilterProxyModel>
#include <QStandardItemModel>
#include <QTextStream>
#include <QTreeView>
#include "base/bittorrent/session.h"
#include "base/global.h"
#include "base/preferences.h"
#include "base/search/searchpluginmanager.h"
#include "base/search/searchhandler.h"
#include "base/utils/foreignapps.h"
#include "base/utils/fs.h"
#include "addnewtorrentdialog.h"
#include "guiiconprovider.h"
#include "mainwindow.h"
#include "pluginselectdialog.h"
#include "searchlistdelegate.h"
#include "searchsortmodel.h"
#include "searchjobwidget.h"
#include "ui_searchwidget.h"

1
src/gui/statusbar.cpp

@ -39,7 +39,6 @@ @@ -39,7 +39,6 @@
#include "base/bittorrent/session.h"
#include "base/bittorrent/sessionstatus.h"
#include "base/utils/misc.h"
#include "guiiconprovider.h"
#include "speedlimitdialog.h"
#include "utils.h"

2
src/gui/tagfilterwidget.cpp

@ -29,8 +29,6 @@ @@ -29,8 +29,6 @@
#include "tagfilterwidget.h"
#include <QAction>
#include <QDebug>
#include <QHeaderView>
#include <QMenu>
#include <QMessageBox>

1
src/gui/torrentcontentmodel.cpp

@ -52,7 +52,6 @@ @@ -52,7 +52,6 @@
#include "base/bittorrent/torrentinfo.h"
#include "base/global.h"
#include "base/utils/fs.h"
#include "base/utils/misc.h"
#include "guiiconprovider.h"
#include "torrentcontentmodelfile.h"
#include "torrentcontentmodelfolder.h"

4
src/gui/torrentcontentmodelitem.cpp

@ -28,10 +28,6 @@ @@ -28,10 +28,6 @@
#include "torrentcontentmodelitem.h"
#include <QDebug>
#include "base/utils/misc.h"
#include "base/utils/fs.h"
#include "torrentcontentmodelfolder.h"
TorrentContentModelItem::TorrentContentModelItem(TorrentContentModelFolder *parent)

1
src/gui/torrentcreatordialog.cpp

@ -30,7 +30,6 @@ @@ -30,7 +30,6 @@
#include "torrentcreatordialog.h"
#include <QCloseEvent>
#include <QDebug>
#include <QFileDialog>
#include <QMessageBox>
#include <QMimeData>

4
src/gui/transferlistfilterswidget.cpp

@ -29,7 +29,6 @@ @@ -29,7 +29,6 @@
#include "transferlistfilterswidget.h"
#include <QCheckBox>
#include <QDebug>
#include <QIcon>
#include <QListWidgetItem>
#include <QMenu>
@ -49,12 +48,9 @@ @@ -49,12 +48,9 @@
#include "base/torrentfilter.h"
#include "base/utils/fs.h"
#include "base/utils/string.h"
#include "autoexpandabledialog.h"
#include "categoryfilterwidget.h"
#include "guiiconprovider.h"
#include "tagfilterwidget.h"
#include "transferlistdelegate.h"
#include "transferlistmodel.h"
#include "transferlistwidget.h"
#include "utils.h"

1
src/gui/transferlistmodel.cpp

@ -38,7 +38,6 @@ @@ -38,7 +38,6 @@
#include "base/bittorrent/session.h"
#include "base/bittorrent/torrenthandle.h"
#include "base/global.h"
#include "base/torrentfilter.h"
#include "base/utils/fs.h"
static QIcon getIconByState(BitTorrent::TorrentState state);

2
src/webui/api/serialize/serialize_torrent.cpp

@ -30,10 +30,8 @@ @@ -30,10 +30,8 @@
#include <QDateTime>
#include "base/bittorrent/session.h"
#include "base/bittorrent/torrenthandle.h"
#include "base/utils/fs.h"
#include "base/utils/string.h"
namespace
{

1
src/webui/api/synccontroller.cpp

@ -40,7 +40,6 @@ @@ -40,7 +40,6 @@
#include "base/global.h"
#include "base/net/geoipmanager.h"
#include "base/preferences.h"
#include "base/utils/fs.h"
#include "base/utils/string.h"
#include "apierror.h"
#include "freediskspacechecker.h"

Loading…
Cancel
Save