diff --git a/mozglue/tests/interceptor/TestDllInterceptor.cpp b/mozglue/tests/interceptor/TestDllInterceptor.cpp index e3f3bb253eba..cabc74992689 100644 --- a/mozglue/tests/interceptor/TestDllInterceptor.cpp +++ b/mozglue/tests/interceptor/TestDllInterceptor.cpp @@ -85,48 +85,35 @@ static payload patched_rotatePayload(payload p) { } // Invoke aFunc by taking aArg's contents and using them as aFunc's arguments -template , size_t... Indices> -decltype(auto) Apply(CallableT&& aFunc, ArgTuple&& aArgs, +decltype(auto) Apply(OrigFuncT& aFunc, ArgTuple&& aArgs, std::index_sequence) { - return std::forward(aFunc)( - Get(std::forward(aArgs))...); + return aFunc(Get(std::forward(aArgs))...); } -template -bool TestFunction(CallableT aFunc); - #define DEFINE_TEST_FUNCTION(calling_convention) \ - template