diff --git a/src/core/bittorrent/torrenthandle.cpp b/src/core/bittorrent/torrenthandle.cpp index cd9b2e3bf..6fcdec699 100644 --- a/src/core/bittorrent/torrenthandle.cpp +++ b/src/core/bittorrent/torrenthandle.cpp @@ -509,22 +509,6 @@ qreal TorrentHandle::ratioLimit() const return m_ratioLimit; } - -QString TorrentHandle::firstFileSavePath() const -{ - Q_ASSERT(hasMetadata()); - - QString fSavePath = savePath(); - if (!fSavePath.endsWith("/")) - fSavePath += "/"; - fSavePath += filePath(0); - // Remove .!qB extension - if (fSavePath.endsWith(".!qB", Qt::CaseInsensitive)) - fSavePath.chop(4); - - return fSavePath; -} - QString TorrentHandle::filePath(int index) const { return m_torrentInfo.filePath(index); diff --git a/src/core/bittorrent/torrenthandle.h b/src/core/bittorrent/torrenthandle.h index c8e6141f3..b231657be 100644 --- a/src/core/bittorrent/torrenthandle.h +++ b/src/core/bittorrent/torrenthandle.h @@ -192,7 +192,6 @@ namespace BitTorrent QDateTime addedTime() const; qreal ratioLimit() const; - QString firstFileSavePath() const; QString filePath(int index) const; QString fileName(int index) const; qlonglong fileSize(int index) const;