mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-31 12:00:16 -07:00
Drop unused method TorrentHandle::firstFileSavePath().
This commit is contained in:
parent
08ee439a47
commit
228f51fff9
2 changed files with 0 additions and 17 deletions
|
@ -509,22 +509,6 @@ qreal TorrentHandle::ratioLimit() const
|
||||||
return m_ratioLimit;
|
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
|
QString TorrentHandle::filePath(int index) const
|
||||||
{
|
{
|
||||||
return m_torrentInfo.filePath(index);
|
return m_torrentInfo.filePath(index);
|
||||||
|
|
|
@ -192,7 +192,6 @@ namespace BitTorrent
|
||||||
QDateTime addedTime() const;
|
QDateTime addedTime() const;
|
||||||
qreal ratioLimit() const;
|
qreal ratioLimit() const;
|
||||||
|
|
||||||
QString firstFileSavePath() const;
|
|
||||||
QString filePath(int index) const;
|
QString filePath(int index) const;
|
||||||
QString fileName(int index) const;
|
QString fileName(int index) const;
|
||||||
qlonglong fileSize(int index) const;
|
qlonglong fileSize(int index) const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue