mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-29 11:48:05 -06:00
TorrentContentModel code clean up
This commit is contained in:
@@ -63,15 +63,6 @@ qulonglong TorrentContentModelItem::size() const
|
||||
return m_size;
|
||||
}
|
||||
|
||||
void TorrentContentModelItem::setProgress(qulonglong done)
|
||||
{
|
||||
Q_ASSERT(!isRootItem());
|
||||
|
||||
m_totalDone = done;
|
||||
Q_ASSERT(m_totalDone <= m_size);
|
||||
m_parentItem->updateProgress();
|
||||
}
|
||||
|
||||
qulonglong TorrentContentModelItem::totalDone() const
|
||||
{
|
||||
Q_ASSERT(!isRootItem());
|
||||
|
||||
Reference in New Issue
Block a user