mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-28 05:27:15 +03:00
- Removed code that is no longer needed
This commit is contained in:
parent
384f3b23ee
commit
1225d16413
3 changed files with 1 additions and 14 deletions
|
@ -393,7 +393,7 @@ void GUI::fullDiskError(QTorrentHandle& h) const {
|
|||
// Download will be paused by libtorrent. Updating GUI information accordingly
|
||||
QString hash = h.hash();
|
||||
qDebug("Full disk error, pausing torrent %s", hash.toUtf8().data());
|
||||
if(BTSession->isFinished(hash)) {
|
||||
if(h.is_seed()) {
|
||||
// In finished list
|
||||
qDebug("Automatically paused torrent was in finished list");
|
||||
finishedTorrentTab->pauseTorrent(hash);
|
||||
|
|
|
@ -164,12 +164,6 @@ void bittorrent::decreaseDlTorrentPriority(QString hash) {
|
|||
h.queue_position_down();
|
||||
}
|
||||
|
||||
bool bittorrent::isTorrentQueued(QString hash) const {
|
||||
Q_ASSERT(queueingEnabled);
|
||||
QTorrentHandle h = getTorrentHandle(hash);
|
||||
return h.is_queued();
|
||||
}
|
||||
|
||||
void bittorrent::setUploadLimit(QString hash, long val) {
|
||||
qDebug("Set upload limit rate to %ld", val);
|
||||
QTorrentHandle h = getTorrentHandle(hash);
|
||||
|
@ -304,10 +298,6 @@ void bittorrent::deleteTorrent(QString hash, bool permanent) {
|
|||
emit deletedTorrent(hash);
|
||||
}
|
||||
|
||||
bool bittorrent::isFinished(QString hash) const {
|
||||
return getTorrentHandle(hash).is_seed();
|
||||
}
|
||||
|
||||
// Pause a running torrent
|
||||
bool bittorrent::pauseTorrent(QString hash) {
|
||||
bool change = false;
|
||||
|
|
|
@ -86,7 +86,6 @@ class bittorrent : public QObject {
|
|||
float getRealRatio(QString hash) const;
|
||||
session* getSession() const;
|
||||
QHash<QString, QString> getTrackersErrors(QString hash) const;
|
||||
bool isFinished(QString hash) const;
|
||||
bool has_filtered_files(QString hash) const;
|
||||
unsigned int getFinishedPausedTorrentsNb() const;
|
||||
unsigned int getUnfinishedPausedTorrentsNb() const;
|
||||
|
@ -95,8 +94,6 @@ class bittorrent : public QObject {
|
|||
int getUpTorrentPriority(QString hash) const;
|
||||
int getMaximumActiveDownloads() const;
|
||||
int getMaximumActiveTorrents() const;
|
||||
bool isTorrentQueued(QString hash) const;
|
||||
bool is_auto_managed() const;
|
||||
int loadTorrentPriority(QString hash);
|
||||
QStringList getConsoleMessages() const;
|
||||
QStringList getPeerBanMessages() const;
|
||||
|
|
Loading…
Reference in a new issue