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:
Dirk Hohndel 2013-12-20 09:48:39 -08:00
parent 0421a161b4
commit 5c3ed901b5

View file

@ -777,15 +777,6 @@ void DivelogsDeWebServices::downloadFinished()
// now allow the user to cancel or accept
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);
zipFile.close();
}