summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-01-28 23:22:46 +0100
committerNao Pross <naopross@thearcway.org>2019-01-28 23:22:46 +0100
commitc1f728b169279fd1c114223679ea06fdff44cdbd (patch)
tree824609b7ddc63d94aa2b4ecf2dd242b959964a60
parentAdd files to ctags index (create filename tags) (diff)
downloadflatland-c1f728b169279fd1c114223679ea06fdff44cdbd.tar.gz
flatland-c1f728b169279fd1c114223679ea06fdff44cdbd.zip
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
-rw-r--r--engine/include/core/signal.hpp3
-rw-r--r--engine/signal.cpp13
2 files changed, 0 insertions, 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 */