Browse Source

entity: discard the no longer necessary operator!=

skypjack 1 tháng trước cách đây
mục cha
commit
ad147da839
1 tập tin đã thay đổi với 0 bổ sung18 xóa
  1. 0 18
      src/entt/entity/entity.hpp

+ 0 - 18
src/entt/entity/entity.hpp

@@ -223,15 +223,6 @@ struct null_t {
         return true;
         return true;
     }
     }
 
 
-    /**
-     * @brief Compares two null objects.
-     * @param other A null object.
-     * @return False in all cases.
-     */
-    [[nodiscard]] constexpr bool operator!=([[maybe_unused]] const null_t other) const noexcept {
-        return false;
-    }
-
     /**
     /**
      * @brief Compares a null object and an identifier of any type.
      * @brief Compares a null object and an identifier of any type.
      * @tparam Entity Type of identifier.
      * @tparam Entity Type of identifier.
@@ -302,15 +293,6 @@ struct tombstone_t {
         return true;
         return true;
     }
     }
 
 
-    /**
-     * @brief Compares two tombstone objects.
-     * @param other A tombstone object.
-     * @return False in all cases.
-     */
-    [[nodiscard]] constexpr bool operator!=([[maybe_unused]] const tombstone_t other) const noexcept {
-        return false;
-    }
-
     /**
     /**
      * @brief Compares a tombstone object and an identifier of any type.
      * @brief Compares a tombstone object and an identifier of any type.
      * @tparam Entity Type of identifier.
      * @tparam Entity Type of identifier.