Skip to content

Commit

Permalink
test: delete unused functions (code coverage purposes)
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Dec 23, 2023
1 parent d5518c6 commit 24aac47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/entt/core/any.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct empty {
empty() = default;

empty(const empty &) = default;
empty &operator=(const empty &) = default;
empty &operator=(const empty &) = delete;

~empty() {
++counter;
Expand Down
4 changes: 2 additions & 2 deletions test/entt/entity/registry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ struct destruction_order {
*ctx_check = (registry->ctx().find<ctx_check_type>() != nullptr);
}

destruction_order(const destruction_order &) = default;
destruction_order &operator=(const destruction_order &) = default;
destruction_order(const destruction_order &) = delete;
destruction_order &operator=(const destruction_order &) = delete;

~destruction_order() {
*ctx_check = *ctx_check && (registry->ctx().find<ctx_check_type>() != nullptr);
Expand Down
4 changes: 2 additions & 2 deletions test/entt/entity/storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ struct update_from_destructor {
: storage{&ref},
target{other} {}

update_from_destructor(const update_from_destructor &) = default;
update_from_destructor &operator=(const update_from_destructor &) = default;
update_from_destructor(const update_from_destructor &) = delete;
update_from_destructor &operator=(const update_from_destructor &) = delete;

update_from_destructor(update_from_destructor &&other) noexcept
: storage{std::exchange(other.storage, nullptr)},
Expand Down

0 comments on commit 24aac47

Please sign in to comment.