From ac8dfe29ae3bb1084109e6c6ffb0d780f25fff87 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 25 Jul 2022 16:35:03 +0200 Subject: [PATCH] group: drop redundant asserts --- src/entt/entity/group.hpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/entt/entity/group.hpp b/src/entt/entity/group.hpp index e7c60ad2b..0bcd02f72 100644 --- a/src/entt/entity/group.hpp +++ b/src/entt/entity/group.hpp @@ -344,8 +344,6 @@ public: */ template [[nodiscard]] decltype(auto) get(const entity_type entt) const { - ENTT_ASSERT(contains(entt), "Group does not contain entity"); - if constexpr(sizeof...(Type) == 0) { return std::apply([entt](auto *...curr) { return std::tuple_cat(curr->get_as_tuple(entt)...); }, pools); } else if constexpr(sizeof...(Type) == 1) { @@ -716,8 +714,6 @@ public: */ template [[nodiscard]] decltype(auto) get(const entity_type entt) const { - ENTT_ASSERT(contains(entt), "Group does not contain entity"); - if constexpr(sizeof...(Type) == 0) { return std::apply([entt](auto *...curr) { return std::tuple_cat(curr->get_as_tuple(entt)...); }, pools); } else if constexpr(sizeof...(Type) == 1) {