From ffae64ded727f3d70c1a58c2d587531c3eb4a2f0 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 23 Sep 2015 16:56:38 -0300 Subject: Code cleanup Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index c7a75d47f..c74ef527e 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -866,10 +866,8 @@ void MainTab::updateDiveSite(int divenr) } uint32_t pickedUuid = ui.location->currDiveSiteUuid(); - const QString newName = displayed_dive_site.name; const uint32_t origUuid = cd->dive_site_uuid; struct dive_site *origDs = get_dive_site_by_uuid(origUuid); - const QString origName = origDs ? origDs->name : ""; if (pickedUuid == RECENTLY_ADDED_DIVESITE) { pickedUuid = create_dive_site(ui.location->text().isEmpty() ? qPrintable(tr("New dive site")) : qPrintable(ui.location->text()), displayed_dive.when); -- cgit v1.2.3-70-g09d2