Browse Source

sparse set: remove deprecated functions

skypjack 4 months ago
parent
commit
75fa927f31
2 changed files with 2 additions and 7 deletions
  1. 0 5
      src/entt/entity/sparse_set.hpp
  2. 2 2
      test/entt/entity/sparse_set.cpp

+ 0 - 5
src/entt/entity/sparse_set.hpp

@@ -1086,11 +1086,6 @@ public:
         return *descriptor;
     }
 
-    /*! @copydoc info */
-    [[deprecated("use ::info instead")]] [[nodiscard]] const type_info &type() const noexcept {
-        return info();
-    }
-
     /**
      * @brief Forwards variables to derived classes, if any.
      * @tparam Type Type of the element to forward.

+ 2 - 2
test/entt/entity/sparse_set.cpp

@@ -64,7 +64,7 @@ TYPED_TEST(SparseSet, Constructors) {
 
         ASSERT_EQ(set.policy(), entt::deletion_policy::swap_and_pop);
         ASSERT_NO_THROW([[maybe_unused]] auto alloc = set.get_allocator());
-        ASSERT_EQ(set.type(), entt::type_id<void>());
+        ASSERT_EQ(set.info(), entt::type_id<void>());
 
         set = sparse_set_type{policy, allocator_type{}};
 
@@ -76,7 +76,7 @@ TYPED_TEST(SparseSet, Constructors) {
 
         ASSERT_EQ(set.policy(), policy);
         ASSERT_NO_THROW([[maybe_unused]] auto alloc = set.get_allocator());
-        ASSERT_EQ(set.type(), entt::type_id<int>());
+        ASSERT_EQ(set.info(), entt::type_id<int>());
     }
 }