Remove unnecessary code from qbtsession.

This commit is contained in:
sledgehammer999 2013-07-27 17:55:45 +03:00
parent dd78744695
commit 6c89df7206

View File

@ -2778,12 +2778,6 @@ void QBtSession::startUpTorrents() {
if (isQueueingEnabled()) {
priority_queue<QPair<int, QString>, vector<QPair<int, QString> >, std::greater<QPair<int, QString> > > torrent_queue;
foreach (const QString &hash, known_torrents) {
QString filePath;
if (TorrentPersistentData::isMagnet(hash)) {
filePath = TorrentPersistentData::getMagnetUri(hash);
} else {
filePath = torrentBackup.path()+QDir::separator()+hash+".torrent";
}
const int prio = TorrentPersistentData::getPriority(hash);
torrent_queue.push(qMakePair(prio, hash));
}