Skip to content

Commit

Permalink
organizer: drop deprecated members
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Oct 24, 2024
1 parent 0a3c2cc commit bf0bde8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
8 changes: 0 additions & 8 deletions src/entt/entity/organizer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,6 @@ class basic_organizer final {
return out;
}

/**
* @brief Returns the list of nodes reachable from a given vertex.
* @return The list of nodes reachable from the vertex.
*/
[[deprecated("use ::out_edges")]] [[nodiscard]] const std::vector<std::size_t> &children() const noexcept {
return out_edges();
}

/**
* @brief Prepares a registry and assures that all required resources
* are properly instantiated before using them.
Expand Down
12 changes: 6 additions & 6 deletions test/entt/entity/organizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ TEST(Organizer, EmplaceFreeFunction) {
ASSERT_EQ(graph[0u].out_edges()[0u], 1u);
ASSERT_EQ(graph[0u].out_edges()[1u], 2u);
ASSERT_EQ(graph[1u].out_edges()[0u], 3u);
ASSERT_EQ(graph[2u].children()[0u], 3u); // NOLINT
ASSERT_EQ(graph[2u].out_edges()[0u], 3u);

for(auto &&vertex: graph) {
typename entt::organizer::function_type *cb = vertex.callback();
Expand Down Expand Up @@ -148,7 +148,7 @@ TEST(Organizer, EmplaceMemberFunction) {

ASSERT_EQ(graph[0u].out_edges()[0u], 1u);
ASSERT_EQ(graph[1u].out_edges()[0u], 2u);
ASSERT_EQ(graph[2u].children()[0u], 3u); // NOLINT
ASSERT_EQ(graph[2u].out_edges()[0u], 3u);

for(auto &&vertex: graph) {
typename entt::organizer::function_type *cb = vertex.callback();
Expand Down Expand Up @@ -221,7 +221,7 @@ TEST(Organizer, EmplaceFreeFunctionWithPayload) {
ASSERT_EQ(graph[0u].out_edges()[0u], 4u);
ASSERT_EQ(graph[1u].out_edges()[0u], 4u);
ASSERT_EQ(graph[2u].out_edges()[0u], 3u);
ASSERT_EQ(graph[3u].children()[0u], 4u); // NOLINT
ASSERT_EQ(graph[3u].out_edges()[0u], 4u);

for(auto &&vertex: graph) {
typename entt::organizer::function_type *cb = vertex.callback();
Expand Down Expand Up @@ -303,7 +303,7 @@ TEST(Organizer, EmplaceDirectFunction) {

ASSERT_EQ(graph[0u].out_edges()[0u], 1u);
ASSERT_EQ(graph[1u].out_edges()[0u], 2u);
ASSERT_EQ(graph[2u].children()[0u], 3u); // NOLINT
ASSERT_EQ(graph[2u].out_edges()[0u], 3u);

for(auto &&vertex: graph) {
typename entt::organizer::function_type *cb = vertex.callback();
Expand Down Expand Up @@ -370,7 +370,7 @@ TEST(Organizer, SyncPoint) {
ASSERT_EQ(graph[1u].out_edges()[1u], 3u);
ASSERT_EQ(graph[2u].out_edges()[0u], 4u);
ASSERT_EQ(graph[3u].out_edges()[0u], 4u);
ASSERT_EQ(graph[4u].children()[0u], 5u); // NOLINT
ASSERT_EQ(graph[4u].out_edges()[0u], 5u);

for(auto &&vertex: graph) {
typename entt::organizer::function_type *cb = vertex.callback();
Expand Down Expand Up @@ -407,7 +407,7 @@ TEST(Organizer, Override) {
ASSERT_EQ(graph[2u].out_edges().size(), 0u);

ASSERT_EQ(graph[0u].out_edges()[0u], 2u);
ASSERT_EQ(graph[1u].children()[0u], 2u); // NOLINT
ASSERT_EQ(graph[1u].out_edges()[0u], 2u);
}

TEST(Organizer, Prepare) {
Expand Down

0 comments on commit bf0bde8

Please sign in to comment.