summaryrefslogtreecommitdiffstats
path: root/commands/command_edit.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-06 12:24:53 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-10 02:37:03 +0900
commit24e02d878d54580d1c0395cc5c14645341e87044 (patch)
treeaf4a0435e401ba77bac3e6c9f599f276850dfcc9 /commands/command_edit.cpp
parent57f5d4b7843da573c6c254d6f023270fddaf8e5c (diff)
downloadsubsurface-24e02d878d54580d1c0395cc5c14645341e87044.tar.gz
code cleanup: remove unused member variable
It was initialized, but never referenced. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'commands/command_edit.cpp')
-rw-r--r--commands/command_edit.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/command_edit.cpp b/commands/command_edit.cpp
index 02939ac6d..d55684814 100644
--- a/commands/command_edit.cpp
+++ b/commands/command_edit.cpp
@@ -865,8 +865,7 @@ void PasteState::swap(dive_components what)
}
// ***** Paste *****
-PasteDives::PasteDives(const dive *data, dive_components whatIn) : what(whatIn),
- current(current_dive)
+PasteDives::PasteDives(const dive *data, dive_components whatIn) : what(whatIn)
{
std::vector<dive *> selection = getDiveSelection();
dives.reserve(selection.size());