Remove unused Function::TryCall

This commit is contained in:
Wojtek Figat
2023-05-23 16:08:51 +02:00
parent 2881ca17a0
commit f5adbc08fa

View File

@@ -203,23 +203,12 @@ public:
return _function != nullptr;
}
/// <summary>
/// Calls the binded function if any has been assigned.
/// </summary>
/// <param name="params">A list of parameters for the function invocation.</param>
/// <returns>Function result</returns>
void TryCall(Params ... params) const
{
if (_function)
_function(_callee, Forward<Params>(params)...);
}
/// <summary>
/// Calls the binded function (it must be assigned).
/// </summary>
/// <param name="params">A list of parameters for the function invocation.</param>
/// <returns>Function result</returns>
ReturnType operator()(Params ... params) const
FORCE_INLINE ReturnType operator()(Params ... params) const
{
ASSERT(_function);
return _function(_callee, Forward<Params>(params)...);