From 5c3ed901b572bf0bb56eddc5d95c7cb0f132d83a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 20 Dec 2013 09:48:39 -0800 Subject: 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 --- qt-ui/subsurfacewebservices.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp index 2a2d2b370..b025b45bd 100644 --- a/qt-ui/subsurfacewebservices.cpp +++ b/qt-ui/subsurfacewebservices.cpp @@ -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(); } -- cgit v1.2.3-70-g09d2