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

delegate: discard the no longer necessary operator!=

skypjack 2 месяцев назад
Родитель
Сommit
55a6fd65aa
1 измененных файлов с 0 добавлено и 13 удалено
  1. 0 13
      src/entt/signal/delegate.hpp

+ 0 - 13
src/entt/signal/delegate.hpp

@@ -285,19 +285,6 @@ private:
     delegate_type *fn{};
 };
 
-/**
- * @brief Compares the contents of two delegates.
- * @tparam Ret Return type of a function type.
- * @tparam Args Types of arguments of a function type.
- * @param lhs A valid delegate object.
- * @param rhs A valid delegate object.
- * @return True if the two contents differ, false otherwise.
- */
-template<typename Ret, typename... Args>
-[[nodiscard]] bool operator!=(const delegate<Ret(Args...)> &lhs, const delegate<Ret(Args...)> &rhs) noexcept {
-    return !(lhs == rhs);
-}
-
 /**
  * @brief Deduction guide.
  * @tparam Candidate Function or member to connect to the delegate.