From 24e02d878d54580d1c0395cc5c14645341e87044 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 6 Jan 2020 12:24:53 -0800 Subject: code cleanup: remove unused member variable It was initialized, but never referenced. Signed-off-by: Dirk Hohndel --- commands/command_edit.cpp | 3 +-- commands/command_edit.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'commands') 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 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 dives; - dive *current; public: PasteDives(const dive *d, dive_components what); private: -- cgit v1.2.3-70-g09d2