Преглед на файлове

entity: discard the no longer necessary operator!=

skypjack преди 1 месец
родител
ревизия
ad147da839
променени са 1 файла, в които са добавени 0 реда и са изтрити 18 реда
  1. 0 18
      src/entt/entity/entity.hpp

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

@@ -223,15 +223,6 @@ struct null_t {
         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.
      * @tparam Entity Type of identifier.
@@ -302,15 +293,6 @@ struct tombstone_t {
         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.
      * @tparam Entity Type of identifier.