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

storage: discard the no longer necessary operator!=

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

+ 0 - 10
src/entt/entity/storage.hpp

@@ -121,11 +121,6 @@ template<typename Lhs, typename Rhs, auto Page>
     return lhs.index() == rhs.index();
 }
 
-template<typename Lhs, typename Rhs, auto Page>
-[[nodiscard]] constexpr bool operator!=(const storage_iterator<Lhs, Page> &lhs, const storage_iterator<Rhs, Page> &rhs) noexcept {
-    return !(lhs == rhs);
-}
-
 template<typename Lhs, typename Rhs, auto Page>
 [[nodiscard]] constexpr bool operator<(const storage_iterator<Lhs, Page> &lhs, const storage_iterator<Rhs, Page> &rhs) noexcept {
     return lhs.index() > rhs.index();
@@ -203,11 +198,6 @@ template<typename... Lhs, typename... Rhs>
     return std::get<0>(lhs.it) == std::get<0>(rhs.it);
 }
 
-template<typename... Lhs, typename... Rhs>
-[[nodiscard]] constexpr bool operator!=(const extended_storage_iterator<Lhs...> &lhs, const extended_storage_iterator<Rhs...> &rhs) noexcept {
-    return !(lhs == rhs);
-}
-
 } // namespace internal
 /*! @endcond */