Skip to content

Commit

Permalink
meta factory: drop deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Oct 28, 2024
1 parent 0302caa commit 7bc9579
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions src/entt/meta/factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,21 +98,6 @@ class basic_meta_factory {
}
}

[[deprecated("use ::custom() instead")]] void prop(meta_prop_node node) {
std::vector<meta_prop_node> *container = nullptr;

if(bucket == parent) {
container = &details->prop;
} else if(invoke == nullptr) {
container = &find_member_or_assert()->prop;
} else {
container = &find_overload_or_assert()->prop;
}

auto *member = find_member<&meta_prop_node::id>(*container, node.id);
(member != nullptr) ? (*member = std::move(node)) : container->emplace_back(std::move(node));
}

void traits(const meta_traits value) {
if(bucket == parent) {
meta_context::from(*ctx).value[bucket].traits |= value;
Expand Down Expand Up @@ -487,27 +472,6 @@ class meta_factory: private internal::basic_meta_factory {
return *this;
}

/**
* @brief Assigns a property to the last created meta object.
*
* Both the key and the value (if any) must be at least copy constructible.
*
* @tparam Value Optional type of the property value.
* @param id Property key.
* @param value Optional property value.
* @return A meta factory for the parent type.
*/
template<typename... Value>
[[deprecated("use ::custom() instead")]] meta_factory prop(id_type id, [[maybe_unused]] Value &&...value) {
if constexpr(sizeof...(Value) == 0u) {
base_type::prop(internal::meta_prop_node{id, &internal::resolve<void>});
} else {
base_type::prop(internal::meta_prop_node{id, &internal::resolve<std::decay_t<Value>>..., std::make_shared<std::decay_t<Value>>(std::forward<Value>(value))...});
}

return *this;
}

/**
* @brief Sets traits on the last created meta object.
*
Expand Down

0 comments on commit 7bc9579

Please sign in to comment.