Kaynağa Gözat

registry: removed useless check

Michele Caini 5 yıl önce
ebeveyn
işleme
bf0160adbd
2 değiştirilmiş dosya ile 0 ekleme ve 4 silme
  1. 0 1
      TODO
  2. 0 3
      src/entt/entity/registry.hpp

+ 0 - 1
TODO

@@ -16,7 +16,6 @@ Next:
 * make it easier to hook into the type system and describe how to do that to eg auto-generate meta types on first use
 * review multi component views to reduce instantiations once empty types are gone...
 * add observer functions aside observer class
-* registry clear can use the range-destroy and run much, much faster!
 
 * WIP:
  - introduce the component iterators for non-contiguous collections of entities (multi component views, observers, user defined collections)

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

@@ -903,9 +903,6 @@ public:
                 pdata.remove(*pdata.pool, *this, entity);
             }
         }
-
-        // just a way to protect users from listeners that attach components
-        ENTT_ASSERT(orphan(entity));
     }
 
     /**