From 55a6fd65aa349e7b7f65800551e6e302ab47362e Mon Sep 17 00:00:00 2001 From: skypjack Date: Thu, 8 Jan 2026 11:31:40 +0100 Subject: [PATCH] delegate: discard the no longer necessary operator!= --- src/entt/signal/delegate.hpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/entt/signal/delegate.hpp b/src/entt/signal/delegate.hpp index bcdfcd0b2..7fce9329a 100644 --- a/src/entt/signal/delegate.hpp +++ b/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 -[[nodiscard]] bool operator!=(const delegate &lhs, const delegate &rhs) noexcept { - return !(lhs == rhs); -} - /** * @brief Deduction guide. * @tparam Candidate Function or member to connect to the delegate.