From ade3305b4c050dc0217757b7d6be52675e50698b Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 31 May 2019 15:10:46 +0200 Subject: [PATCH] removed useless references to components from dependencies --- src/entt/entity/helper.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/entt/entity/helper.hpp b/src/entt/entity/helper.hpp index 77375dca1..88a880e14 100644 --- a/src/entt/entity/helper.hpp +++ b/src/entt/entity/helper.hpp @@ -119,13 +119,12 @@ as_group(const basic_registry &) ENTT_NOEXCEPT -> as_group * It isn't intended for direct use, although nothing forbids using it freely. * * @tparam Entity A valid entity type (see entt_traits for more details). - * @tparam Component Type of component that triggers the dependency handler. * @tparam Dependency Types of components to assign to an entity if triggered. * @param reg A valid reference to a registry. * @param entt A valid entity identifier. */ -template -void dependency(basic_registry ®, const Entity entt, const Component &) { +template +void dependency(basic_registry ®, const Entity entt) { ((reg.template has(entt) ? void() : (reg.template assign(entt), void())), ...); } @@ -150,7 +149,7 @@ void dependency(basic_registry ®, const Entity entt, const Component */ template void connect(sink &, const Entity, Component &)> sink) { - sink.template connect>(); + sink.template connect>(); } @@ -174,7 +173,7 @@ void connect(sink &, const Entity, Component &)> sin */ template void disconnect(sink &, const Entity, Component &)> sink) { - sink.template disconnect>(); + sink.template disconnect>(); }