mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
726e251ffc
commit
5bf0e48700
3 changed files with 4 additions and 5 deletions
|
@ -592,7 +592,7 @@ void learnImageDirs(QStringList dirnames)
|
|||
{
|
||||
QList<QFuture<void> > futures;
|
||||
foreach (QString dir, dirnames) {
|
||||
futures << QtConcurrent::run(learnImages, QDir(dir), 10, false);
|
||||
futures << QtConcurrent::run(learnImages, QDir(dir), 10);
|
||||
}
|
||||
DivePictureModel::instance()->updateDivePicturesWhenDone(futures);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ void read_hashes();
|
|||
void write_hashes();
|
||||
void updateHash(struct picture *picture);
|
||||
QByteArray hashFile(const QString filename);
|
||||
void learnImages(const QDir dir, int max_recursions, bool recursed);
|
||||
void learnImages(const QDir dir, int max_recursions);
|
||||
void add_hash(const QString filename, QByteArray hash);
|
||||
void hashPicture(struct picture *picture);
|
||||
QString localFilePath(const QString originalFilename);
|
||||
|
|
Loading…
Add table
Reference in a new issue