mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove pointless code
Why calculate the number of entries in the zip downloaded from Divelogs.De if you don't do anything with that number? Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0421a161b4
commit
5c3ed901b5
1 changed files with 0 additions and 9 deletions
|
@ -777,15 +777,6 @@ void DivelogsDeWebServices::downloadFinished()
|
||||||
// now allow the user to cancel or accept
|
// now allow the user to cancel or accept
|
||||||
ui.buttonBox->button(QDialogButtonBox::Apply)->setEnabled(true);
|
ui.buttonBox->button(QDialogButtonBox::Apply)->setEnabled(true);
|
||||||
|
|
||||||
quint64 entries;
|
|
||||||
#if defined(LIBZIP_VERSION_MAJOR)
|
|
||||||
entries = zip_get_num_entries(zip, 0);
|
|
||||||
#else
|
|
||||||
// old version of libzip
|
|
||||||
entries = zip_get_num_files(zip);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
zip_close(zip);
|
zip_close(zip);
|
||||||
zipFile.close();
|
zipFile.close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue