Browse Source

handle: discard the no longer necessary operator!=

skypjack 1 month ago
parent
commit
dd5043fa81
1 changed files with 0 additions and 19 deletions
  1. 0 19
      src/entt/entity/handle.hpp

+ 0 - 19
src/entt/entity/handle.hpp

@@ -78,11 +78,6 @@ template<typename ILhs, typename IRhs>
     return lhs.it == rhs.it;
 }
 
-template<typename ILhs, typename IRhs>
-[[nodiscard]] constexpr bool operator!=(const handle_storage_iterator<ILhs> &lhs, const handle_storage_iterator<IRhs> &rhs) noexcept {
-    return !(lhs == rhs);
-}
-
 } // namespace internal
 /*! @endcond */
 
@@ -364,20 +359,6 @@ template<typename... Args, typename... Other>
     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<typename... Args, typename... Other>
-[[nodiscard]] bool operator!=(const basic_handle<Args...> &lhs, const basic_handle<Other...> &rhs) noexcept {
-    return !(lhs == rhs);
-}
-
 /**
  * @brief Compares a handle with the null object.
  * @tparam Args Scope of the handle.