From c1f728b169279fd1c114223679ea06fdff44cdbd Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Mon, 28 Jan 2019 23:22:46 +0100 Subject: Delete signal::emit(channel) It did not make much sense to have a signal emit itself on the channel. It breaks the model and makes things needlessly complex --- engine/include/core/signal.hpp | 3 --- engine/signal.cpp | 13 ------------- 2 files changed, 16 deletions(-) diff --git a/engine/include/core/signal.hpp b/engine/include/core/signal.hpp index 9c38d8b..8d7aeef 100644 --- a/engine/include/core/signal.hpp +++ b/engine/include/core/signal.hpp @@ -39,9 +39,6 @@ namespace flat::core const std::string& id = "", void * data = 0, priority_t prior = priority_t::none); - - /* Alias to flat::core::channel::emit() */ - bool emit(const std::string& channel) const; }; /* Listener class */ diff --git a/engine/signal.cpp b/engine/signal.cpp index 512b456..649164a 100644 --- a/engine/signal.cpp +++ b/engine/signal.cpp @@ -175,19 +175,6 @@ signal::signal(object *sender, { } -bool signal::emit(const std::string& chan) const -{ - channel::ptr c = channel::find(chan); - - if (!c) - return false; - - /* Finally emit in channel */ - c->emit(*this); - - return true; -} - /* listener_s class */ -- cgit v1.2.1