Remove unused code into GUI

This commit is contained in:
andrea
2022-07-11 15:10:25 +02:00
committed by Uwe
parent 094ae93678
commit 3018985f80
47 changed files with 14 additions and 1592 deletions

View File

@@ -264,21 +264,8 @@ bool ApplicationCache::performAction(qint64 total)
*/
qint64 ApplicationCache::size() const
{
// QDirIterator lists some directories twice
#if 0
QDir cache = QString::fromStdString(App::Application::getUserCachePath());
QDirIterator it(cache, QDirIterator::Subdirectories);
qint64 total = 0;
while (it.hasNext()) {
it.next();
total += it.fileInfo().size();
}
return total;
#else
qint64 total = dirSize(QString::fromStdString(App::Application::getUserCachePath()));
return total;
#endif
}
/*!