Просмотр исходного кода

entity: discard the no longer necessary operator!=

skypjack 1 месяц назад
Родитель
Сommit
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.