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

hashed_string: discard the no longer necessary operator!=

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

+ 0 - 12
src/entt/core/hashed_string.hpp

@@ -227,18 +227,6 @@ template<typename Char>
     return lhs.value() == rhs.value();
 }
 
-/**
- * @brief Compares two hashed strings.
- * @tparam Char Character type.
- * @param lhs A valid hashed string.
- * @param rhs A valid hashed string.
- * @return True if the two hashed strings differ, false otherwise.
- */
-template<typename Char>
-[[nodiscard]] constexpr bool operator!=(const basic_hashed_string<Char> &lhs, const basic_hashed_string<Char> &rhs) noexcept {
-    return !(lhs == rhs);
-}
-
 /**
  * @brief Compares two hashed strings.
  * @tparam Char Character type.