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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-04-26 19:09:28 +02:00 committed by Dirk Hohndel
parent 2ad3696230
commit f43b3f56b2
2 changed files with 0 additions and 58 deletions

View file

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