sparse set: remove deprecated functions

This commit is contained in:
skypjack
2025-11-24 14:52:36 +01:00
parent dc784ba2e7
commit 75fa927f31
2 changed files with 2 additions and 7 deletions

View File

@@ -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.

View File

@@ -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>());
}
}