From 65588da9cf17ce286752be48c1f234c0dfdd911f Mon Sep 17 00:00:00 2001 From: Raul Radu <raul.radu@mail.polimi.it> Date: Wed, 7 Feb 2024 22:43:30 +0100 Subject: [PATCH] [Window] Window is using the new MessageBroker --- src/shared/Core/Window/Window.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/shared/Core/Window/Window.cpp b/src/shared/Core/Window/Window.cpp index 2d5ebbec..2153c040 100644 --- a/src/shared/Core/Window/Window.cpp +++ b/src/shared/Core/Window/Window.cpp @@ -36,11 +36,6 @@ Window::Window(XmlObject configuration) } } -Window::~Window() -{ - MessageBroker::getInstance().unsubscribeFromAll(activeModule); -} - void Window::setChild(std::shared_ptr<Module> module) { Module *rawModule = module.get(); @@ -55,7 +50,6 @@ void Window::replaceChild(Module *_oldModule, std::shared_ptr<Module> newModule) { std::shared_ptr<Module> oldModule = this->activeModule; setChild(newModule); - MessageBroker::getInstance().unsubscribeFromAll(oldModule); } void Window::closeChild(Module *module) { close(); } -- GitLab