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

type_info: discard the no longer necessary operator!=

skypjack 1 месяц назад
Родитель
Сommit
d5aa3973db
1 измененных файлов с 0 добавлено и 10 удалено
  1. 0 10
      src/entt/core/type_info.hpp

+ 0 - 10
src/entt/core/type_info.hpp

@@ -191,16 +191,6 @@ private:
     return lhs.hash() == rhs.hash();
 }
 
-/**
- * @brief Compares the contents of two type info objects.
- * @param lhs A type info object.
- * @param rhs A type info object.
- * @return True if the two type info objects differ, false otherwise.
- */
-[[nodiscard]] constexpr bool operator!=(const type_info &lhs, const type_info &rhs) noexcept {
-    return !(lhs == rhs);
-}
-
 /**
  * @brief Compares two type info objects.
  * @param lhs A valid type info object.