Browse Source

Drop unused method TorrentHandle::savePathParsed().

adaptive-webui-19844
Vladimir Golovnev (Glassez) 9 years ago
parent
commit
08ee439a47
  1. 11
      src/core/bittorrent/torrenthandle.cpp
  2. 1
      src/core/bittorrent/torrenthandle.h

11
src/core/bittorrent/torrenthandle.cpp

@ -466,17 +466,6 @@ void TorrentHandle::saveResumeData() @@ -466,17 +466,6 @@ void TorrentHandle::saveResumeData()
m_needSaveResumeData = false;
}
QString TorrentHandle::savePathParsed() const
{
QString p;
if (hasMetadata() && (filesCount() == 1))
p = firstFileSavePath();
else
p = savePath();
return Utils::Fs::toNativePath(p);
}
int TorrentHandle::filesCount() const
{
return m_torrentInfo.filesCount();

1
src/core/bittorrent/torrenthandle.h

@ -184,7 +184,6 @@ namespace BitTorrent @@ -184,7 +184,6 @@ namespace BitTorrent
QString actualSavePath() const;
QString savePath() const;
QString rootPath() const;
QString savePathParsed() const;
int filesCount() const;
int piecesCount() const;
int piecesHave() const;

Loading…
Cancel
Save