From 5bf0e48700004c093f9f755d36ae1bec2ebb85d3 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sun, 6 Mar 2016 21:32:12 -0300 Subject: Remove unused variable Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- subsurface-core/qthelper.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'subsurface-core/qthelper.cpp') diff --git a/subsurface-core/qthelper.cpp b/subsurface-core/qthelper.cpp index 72221eacf..7c67e0993 100644 --- a/subsurface-core/qthelper.cpp +++ b/subsurface-core/qthelper.cpp @@ -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); } } -- cgit v1.2.3-70-g09d2