diff --git a/src/entt/meta/factory.hpp b/src/entt/meta/factory.hpp index 412be6732..72605c4e3 100644 --- a/src/entt/meta/factory.hpp +++ b/src/entt/meta/factory.hpp @@ -460,39 +460,6 @@ public: } }; -/** - * @brief Utility function to use for reflection. - * - * This is the point from which everything starts.
- * By invoking this function with a type that is not yet reflected, a meta type - * is created to which it will be possible to attach meta objects through a - * dedicated factory. - * - * @tparam Type Type to reflect. - * @param ctx The context into which to construct meta types. - * @return A meta factory for the given type. - */ -template -[[nodiscard]] [[deprecated("use meta_factory directly instead")]] auto meta(meta_ctx &ctx) noexcept { - return meta_factory{ctx}; -} - -/** - * @brief Utility function to use for reflection. - * - * This is the point from which everything starts.
- * By invoking this function with a type that is not yet reflected, a meta type - * is created to which it will be possible to attach meta objects through a - * dedicated factory. - * - * @tparam Type Type to reflect. - * @return A meta factory for the given type. - */ -template -[[nodiscard]] [[deprecated("use meta_factory directly instead")]] auto meta() noexcept { - return meta(locator::value_or()); -} - /** * @brief Resets a type and all its parts. * diff --git a/test/entt/meta/meta_factory.cpp b/test/entt/meta/meta_factory.cpp index cb8416ff2..24ebcb67d 100644 --- a/test/entt/meta/meta_factory.cpp +++ b/test/entt/meta/meta_factory.cpp @@ -414,25 +414,6 @@ TEST_F(MetaFactory, Custom) { ASSERT_EQ(static_cast(type.func("func"_hs).next().custom()), 3); } -TEST_F(MetaFactory, Meta) { - entt::meta_ctx ctx{}; - - ASSERT_EQ(entt::resolve(entt::type_id()), entt::meta_type{}); - ASSERT_EQ(entt::resolve(ctx, entt::type_id()), entt::meta_type{}); - - auto factory = entt::meta(); - - ASSERT_NE(entt::resolve(entt::type_id()), entt::meta_type{}); - ASSERT_EQ(entt::resolve(ctx, entt::type_id()), entt::meta_type{}); - ASSERT_TRUE(entt::resolve(entt::type_id()).is_integral()); - - factory = entt::meta(ctx); - - ASSERT_NE(entt::resolve(entt::type_id()), entt::meta_type{}); - ASSERT_NE(entt::resolve(ctx, entt::type_id()), entt::meta_type{}); - ASSERT_TRUE(entt::resolve(ctx, entt::type_id()).is_integral()); -} - TEST_F(MetaFactory, MetaReset) { using namespace entt::literals;