From dd5043fa818cd9079878a4e7dce528b2f7c7e972 Mon Sep 17 00:00:00 2001 From: skypjack Date: Thu, 8 Jan 2026 12:12:29 +0100 Subject: [PATCH] handle: discard the no longer necessary operator!= --- src/entt/entity/handle.hpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/entt/entity/handle.hpp b/src/entt/entity/handle.hpp index e5d412005..aa6a6d163 100644 --- a/src/entt/entity/handle.hpp +++ b/src/entt/entity/handle.hpp @@ -78,11 +78,6 @@ template return lhs.it == rhs.it; } -template -[[nodiscard]] constexpr bool operator!=(const handle_storage_iterator &lhs, const handle_storage_iterator &rhs) noexcept { - return !(lhs == rhs); -} - } // namespace internal /*! @endcond */ @@ -364,20 +359,6 @@ template return lhs.registry() == rhs.registry() && lhs.entity() == rhs.entity(); } -/** - * @brief Compares two handles. - * @tparam Args Scope of the first handle. - * @tparam Other Scope of the second handle. - * @param lhs A valid handle. - * @param rhs A valid handle. - * @return False if both handles refer to the same registry and the same - * entity, true otherwise. - */ -template -[[nodiscard]] bool operator!=(const basic_handle &lhs, const basic_handle &rhs) noexcept { - return !(lhs == rhs); -} - /** * @brief Compares a handle with the null object. * @tparam Args Scope of the handle.