From f43b3f56b252c2403b072298d4dbd613f03c479f Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 26 Apr 2020 19:09:28 +0200 Subject: cleanup: remove Command::inCommand() This was used by the divelist to check wether a selection change is programmatical or user-initiated. However, since there is only one entry point for programmatical selection changes, this is not needed anymore. Remove it - this removes an inter-module dependency. Signed-off-by: Berthold Stoeger --- commands/command_divelist.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'commands') diff --git a/commands/command_divelist.cpp b/commands/command_divelist.cpp index fe59ecb6c..50e410c16 100644 --- a/commands/command_divelist.cpp +++ b/commands/command_divelist.cpp @@ -381,7 +381,6 @@ void DiveListBase::finishWork() void DiveListBase::undo() { - auto marker = diveListNotifier.enterCommand(); initWork(); undoit(); finishWork(); @@ -389,7 +388,6 @@ void DiveListBase::undo() void DiveListBase::redo() { - auto marker = diveListNotifier.enterCommand(); initWork(); redoit(); finishWork(); -- cgit v1.2.3-70-g09d2