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