mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Web UI: Remove unused code
This commit is contained in:
parent
8f439589ea
commit
ab0355f8d6
2 changed files with 6 additions and 24 deletions
|
@ -570,27 +570,10 @@ void HttpConnection::respondCommand(const QString& command) {
|
|||
recheckTorrent(m_parser.post("hash"));
|
||||
return;
|
||||
}
|
||||
if(command == "recheckall"){
|
||||
recheckAllTorrents();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void HttpConnection::recheckTorrent(const QString& hash) {
|
||||
QTorrentHandle h = QBtSession::instance()->getTorrentHandle(hash);
|
||||
if(h.is_valid()){
|
||||
QBtSession::instance()->recheckTorrent(h.hash());
|
||||
}
|
||||
}
|
||||
|
||||
void HttpConnection::recheckAllTorrents() {
|
||||
std::vector<torrent_handle> torrents = QBtSession::instance()->getTorrents();
|
||||
std::vector<torrent_handle>::iterator torrentIT;
|
||||
for(torrentIT = torrents.begin(); torrentIT != torrents.end(); torrentIT++) {
|
||||
QTorrentHandle h = QTorrentHandle(*torrentIT);
|
||||
if(h.is_valid())
|
||||
QBtSession::instance()->recheckTorrent(h.hash());
|
||||
}
|
||||
QBtSession::instance()->recheckTorrent(hash);
|
||||
}
|
||||
|
||||
void HttpConnection::decreaseTorrentsPriority(const QStringList &hashes)
|
||||
|
|
|
@ -66,7 +66,6 @@ protected slots:
|
|||
void processDownloadedFile(const QString& url, const QString& file_path);
|
||||
void handleDownloadFailure(const QString& url, const QString& reason);
|
||||
void recheckTorrent(const QString& hash);
|
||||
void recheckAllTorrents();
|
||||
void decreaseTorrentsPriority(const QStringList& hashes);
|
||||
void increaseTorrentsPriority(const QStringList& hashes);
|
||||
|
||||
|
|
Loading…
Reference in a new issue