diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-26 19:09:28 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-04-26 13:54:59 -0700 |
commit | f43b3f56b252c2403b072298d4dbd613f03c479f (patch) | |
tree | 6c9f5b6bcb453b715495ec0bdcc0c749ba49ce8b /commands/command_divelist.cpp | |
parent | 2ad3696230e5bbd4f5a339121812d27e857c1789 (diff) | |
download | subsurface-f43b3f56b252c2403b072298d4dbd613f03c479f.tar.gz |
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>
Diffstat (limited to 'commands/command_divelist.cpp')
-rw-r--r-- | commands/command_divelist.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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(); |