Selaa lähdekoodia

registry: cleanup

Michele Caini 6 vuotta sitten
vanhempi
commit
71d86c44e0
2 muutettua tiedostoa jossa 0 lisäystä ja 2 poistoa
  1. 0 1
      TODO
  2. 0 1
      src/entt/entity/registry.hpp

+ 0 - 1
TODO

@@ -15,7 +15,6 @@
 * document undocumented parts (entt::overload and a few others)
 * document undocumented parts (entt::overload and a few others)
 * any-of rule for views/groups (eg entity has A and any of B/C/D)
 * any-of rule for views/groups (eg entity has A and any of B/C/D)
   - get -> all, exclude -> none
   - get -> all, exclude -> none
-* review prepare after clone and the others have been removed
 
 
 Next:
 Next:
 * replace observer class with observer functions
 * replace observer class with observer functions

+ 0 - 1
src/entt/entity/registry.hpp

@@ -219,7 +219,6 @@ public:
      */
      */
     template<typename Component>
     template<typename Component>
     void prepare() {
     void prepare() {
-        ENTT_ASSERT(std::none_of(pools.cbegin(), pools.cend(), [](auto &&pdata) { return pdata.type_id == type_info<Component>::id(); }));
         assure<Component>();
         assure<Component>();
     }
     }