From 9bae19198fdc7bfb71f900cfe6c1982cb2a80e4f Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Tue, 3 Jun 2025 16:20:27 +0800 Subject: Revert "Fix up llexception.h's cross-platform SEH wrapper." This reverts commit 5ed8df22cd59680a685c4ada7daa5555bf59d4fe. --- indra/llcommon/always_return.h | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'indra/llcommon/always_return.h') diff --git a/indra/llcommon/always_return.h b/indra/llcommon/always_return.h index b99eb49096..a206471da5 100644 --- a/indra/llcommon/always_return.h +++ b/indra/llcommon/always_return.h @@ -79,22 +79,6 @@ namespace LL DESIRED mDefault; }; - // specialize for AlwaysReturn - template <> - struct AlwaysReturn - { - public: - AlwaysReturn() {} - - // callable returns a type not convertible to DESIRED, return default - template - void operator()(CALLABLE&& callable, ARGS&&... args) - { - // discard whatever callable(args) returns - std::forward(callable)(std::forward(args)...); - } - }; - /** * always_return(some_function, some_args...) calls * some_function(some_args...). It is guaranteed to return a value of type -- cgit v1.2.3