code cleanup: remove unused member variable

It was initialized, but never referenced.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-01-06 12:24:53 -08:00
parent 57f5d4b784
commit 24e02d878d
2 changed files with 1 additions and 3 deletions

View file

@ -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());

View file

@ -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: