From f490ea958368a7401de65de17157ec497ad2e340 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sat, 27 Jul 2013 17:55:45 +0300 Subject: [PATCH] Remove unnecessary code from qbtsession. --- src/qtlibtorrent/qbtsession.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/qtlibtorrent/qbtsession.cpp b/src/qtlibtorrent/qbtsession.cpp index 2e079fa46..d6e01628f 100644 --- a/src/qtlibtorrent/qbtsession.cpp +++ b/src/qtlibtorrent/qbtsession.cpp @@ -2762,12 +2762,6 @@ void QBtSession::startUpTorrents() { if (isQueueingEnabled()) { priority_queue, vector >, std::greater > > 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)); }