aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-core/qthelper.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2016-03-06 21:32:12 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-07 11:17:16 -0800
commit5bf0e48700004c093f9f755d36ae1bec2ebb85d3 (patch)
treee76943b9b3a030e4b240ce6a13d4f3a93ec932d8 /subsurface-core/qthelper.cpp
parent726e251ffc3ebaa4e9c8a94048cb192ba51f7016 (diff)
downloadsubsurface-5bf0e48700004c093f9f755d36ae1bec2ebb85d3.tar.gz
Remove unused variable
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/qthelper.cpp')
-rw-r--r--subsurface-core/qthelper.cpp5
1 files changed, 2 insertions, 3 deletions
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);
}
}