Browse Source

storage: cleanup

Michele Caini 4 years ago
parent
commit
26f19fb90e
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/entt/entity/storage.hpp

+ 1 - 3
src/entt/entity/storage.hpp

@@ -626,10 +626,8 @@ struct storage_adapter_mixin: Type {
  */
 template<typename Type>
 class sigh_storage_mixin final: public Type {
-    using Entity = typename Type::entity_type;
-
     /*! @copydoc basic_sparse_set::about_to_remove */
-    void about_to_remove(const Entity entity, void *ud) final {
+    void about_to_remove(const typename Type::entity_type entity, void *ud) final {
         ENTT_ASSERT(ud != nullptr, "Invalid pointer to registry");
         destruction.publish(*static_cast<basic_registry<typename Type::entity_type> *>(ud), entity);
         Type::about_to_remove(entity, ud);