aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/command_divelist.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-12-23 23:50:33 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-01-09 20:58:04 -0800
commitea40370389a5423e54ce2ef3fbab9d7bd76a7802 (patch)
tree05174ce88b0989cffcdd7e0ba34fc02faef165d0 /desktop-widgets/command_divelist.cpp
parent82c47bdd794c05e51c73afda14b8bfc95f6694e1 (diff)
downloadsubsurface-ea40370389a5423e54ce2ef3fbab9d7bd76a7802.tar.gz
Cleanup: remove explicit constructor of DiveListBase
DiveListBase had an explicit constructor that initialized the "firstExecution" member variable. The latter was a development- artifact that was never used. Remove the member and the constructor. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/command_divelist.cpp')
-rw-r--r--desktop-widgets/command_divelist.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/desktop-widgets/command_divelist.cpp b/desktop-widgets/command_divelist.cpp
index 6d2eafc6d..6ab7ec099 100644
--- a/desktop-widgets/command_divelist.cpp
+++ b/desktop-widgets/command_divelist.cpp
@@ -331,11 +331,6 @@ static void moveDivesBetweenTrips(DivesToTrip &dives)
std::reverse(dives.divesToMove.begin(), dives.divesToMove.end());
}
-// When we initialize the command we don't have to roll-back any selection change
-DiveListBase::DiveListBase() : firstExecution(true)
-{
-}
-
// Turn current selection into a vector.
// TODO: This could be made much more efficient if we kept a sorted list of selected dives!
static std::vector<dive *> getDiveSelection()