From f5adbc08fa522bba62fb59dd3c643ec86cb86b2b Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 23 May 2023 16:08:51 +0200 Subject: [PATCH] Remove unused `Function::TryCall` --- Source/Engine/Core/Delegate.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Source/Engine/Core/Delegate.h b/Source/Engine/Core/Delegate.h index 21a4374ea..4fcf60390 100644 --- a/Source/Engine/Core/Delegate.h +++ b/Source/Engine/Core/Delegate.h @@ -203,23 +203,12 @@ public: return _function != nullptr; } - /// - /// Calls the binded function if any has been assigned. - /// - /// A list of parameters for the function invocation. - /// Function result - void TryCall(Params ... params) const - { - if (_function) - _function(_callee, Forward(params)...); - } - /// /// Calls the binded function (it must be assigned). /// /// A list of parameters for the function invocation. /// Function result - ReturnType operator()(Params ... params) const + FORCE_INLINE ReturnType operator()(Params ... params) const { ASSERT(_function); return _function(_callee, Forward(params)...);