From 57d890a590ba35a37041951fa5378c7937786d43 Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Fri, 28 Feb 2025 11:42:06 +0000 Subject: [PATCH] Gui: Remove unused `Command::updateAll`. --- src/Gui/Command.cpp | 12 ------------ src/Gui/Command.h | 2 -- 2 files changed, 14 deletions(-) diff --git a/src/Gui/Command.cpp b/src/Gui/Command.cpp index 2837dc0d54..074b987a50 100644 --- a/src/Gui/Command.cpp +++ b/src/Gui/Command.cpp @@ -861,18 +861,6 @@ bool Command::isActiveObjectValid() return object->isValid(); } -/// Updates the (all or listed) documents (propagate changes) -void Command::updateAll(std::list cList) -{ - if (!cList.empty()) { - for (auto & it : cList) - it->onUpdate(); - } - else { - Gui::Application::Instance->onUpdate(); - } -} - //-------------------------------------------------------------------------- // Online help handling //-------------------------------------------------------------------------- diff --git a/src/Gui/Command.h b/src/Gui/Command.h index 9c399e3721..cce11e8594 100644 --- a/src/Gui/Command.h +++ b/src/Gui/Command.h @@ -418,8 +418,6 @@ public: static bool hasPendingCommand(); /// Updates the (active) document (propagate changes) static void updateActive(); - /// Updates the (all or listed) documents (propagate changes) - static void updateAll(std::list cList); /// Checks if the active object of the active document is valid static bool isActiveObjectValid(); /// Translate command