diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-12-20 09:48:39 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-20 09:53:06 -0800 |
commit | 5c3ed901b572bf0bb56eddc5d95c7cb0f132d83a (patch) | |
tree | 7bd8326d96fd5c1cedd1d55d7e0fab332644600a /qt-ui | |
parent | 0421a161b4e3e319fb57397b5a729a3440a82c80 (diff) | |
download | subsurface-5c3ed901b572bf0bb56eddc5d95c7cb0f132d83a.tar.gz |
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>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/subsurfacewebservices.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
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(); } |