Remove unused variable

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2016-03-06 21:32:12 -03:00 committed by Dirk Hohndel
parent 726e251ffc
commit 5bf0e48700
3 changed files with 4 additions and 5 deletions

View file

@ -1129,14 +1129,13 @@ extern "C" void cache_picture(struct picture *picture)
QtConcurrent::run(hashPicture, picture);
}
void learnImages(const QDir dir, int max_recursions, bool recursed)
void learnImages(const QDir dir, int max_recursions)
{
QDir current(dir);
QStringList filters, files;
if (max_recursions) {
foreach (QString dirname, dir.entryList(QStringList(), QDir::NoDotAndDotDot | QDir::Dirs)) {
learnImages(QDir(dir.filePath(dirname)), max_recursions - 1, true);
learnImages(QDir(dir.filePath(dirname)), max_recursions - 1);
}
}