summaryrefslogtreecommitdiffstats
path: root/commands
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
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')
-rw-r--r--commands/command_edit.cpp3
-rw-r--r--commands/command_edit.h1
2 files changed, 1 insertions, 3 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());
diff --git a/commands/command_edit.h b/commands/command_edit.h
index aa749ceda..6c2b2f600 100644
--- a/commands/command_edit.h
+++ b/commands/command_edit.h
@@ -307,7 +307,6 @@ struct PasteState {
class PasteDives : public Base {
dive_components what;
std::vector<PasteState> dives;
- dive *current;
public:
PasteDives(const dive *d, dive_components what);
private: