summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-09-23 16:56:38 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-23 14:15:50 -0700
commitffae64ded727f3d70c1a58c2d587531c3eb4a2f0 (patch)
treee452f1ed544537457a87263631545bb84afba40f /qt-ui
parent1e88982d6fcc0f256ad33092dc516a62acc994e4 (diff)
downloadsubsurface-ffae64ded727f3d70c1a58c2d587531c3eb4a2f0.tar.gz
Code cleanup
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/maintab.cpp2
1 files changed, 0 insertions, 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);