1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-25 22:14:32 +00:00

Remove some unused #include

This commit is contained in:
thalieht 2019-06-04 00:35:27 +03:00
parent 4370a7eb12
commit 9995967fbf
45 changed files with 0 additions and 79 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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