diff --git a/src/entt/core/type_info.hpp b/src/entt/core/type_info.hpp index 212f0e9d2..7f0980cca 100644 --- a/src/entt/core/type_info.hpp +++ b/src/entt/core/type_info.hpp @@ -238,20 +238,13 @@ private: template type_info type_id() ENTT_NOEXCEPT { return type_info{ - type_seq>>::value(), - type_hash>>::value(), - type_name>>::value() + type_seq>>::value(), + type_hash>>::value(), + type_name>>::value() }; } -/*! @copydoc type_id */ -template -type_info type_id(Type &&) ENTT_NOEXCEPT { - return type_id(); -} - - } diff --git a/test/entt/core/type_info.cpp b/test/entt/core/type_info.cpp index 07a2d3c82..4fb3fd4ea 100644 --- a/test/entt/core/type_info.cpp +++ b/test/entt/core/type_info.cpp @@ -41,18 +41,11 @@ TEST(TypeInfo, Functionalities) { ASSERT_NE(entt::type_id(), entt::type_id()); auto info = entt::type_id(); - auto other = entt::type_id(42); entt::type_info empty{}; - ASSERT_EQ(info, other); ASSERT_NE(info, empty); - ASSERT_TRUE(info == info); - ASSERT_FALSE(info != other); - - ASSERT_EQ(info.seq(), other.seq()); - ASSERT_EQ(info.hash(), other.hash()); - ASSERT_EQ(info.name(), other.name()); + ASSERT_FALSE(info != info); ASSERT_EQ(info.seq(), entt::type_seq::value()); ASSERT_EQ(info.hash(), entt::type_hash::value()); @@ -60,7 +53,6 @@ TEST(TypeInfo, Functionalities) { ASSERT_FALSE(empty); ASSERT_TRUE(info); - ASSERT_TRUE(other); empty = info; @@ -70,9 +62,10 @@ TEST(TypeInfo, Functionalities) { empty = {}; ASSERT_FALSE(empty); + ASSERT_NE(empty.hash(), info.hash()); - empty = std::move(other); + empty = std::move(info); ASSERT_TRUE(empty); - ASSERT_EQ(empty.hash(), other.hash()); + ASSERT_EQ(empty.hash(), info.hash()); }