crt: crt_handler: Remove _gnu_exception_handler

Now the _gnu_exception_handler function is not used anymore. Remove it.
Inline and remove also __mingw_SEH_error_handler_helper as it is used only
by __mingw_SEH_error_handler.

Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-crt/crt/crt_handler.c b/mingw-w64-crt/crt/crt_handler.c
index fd078e0..191c2da 100644
--- a/mingw-w64-crt/crt/crt_handler.c
+++ b/mingw-w64-crt/crt/crt_handler.c
@@ -77,9 +77,6 @@
 
 #endif
 
-static EXCEPTION_DISPOSITION __cdecl
-__mingw_SEH_error_handler_helper (struct _EXCEPTION_RECORD* ExceptionRecord, struct _CONTEXT* ContextRecord);
-
 #if defined(__i386__)
 /* We need to make sure that we align the stack to 16 bytes for the sake of SSE */
 __attribute__((force_align_arg_pointer))
@@ -90,12 +87,6 @@
 			   struct _CONTEXT* ContextRecord,
 			   void *DispatcherContext __attribute__ ((unused)))
 {
-  return __mingw_SEH_error_handler_helper (ExceptionRecord, ContextRecord);
-}
-
-static EXCEPTION_DISPOSITION __cdecl
-__mingw_SEH_error_handler_helper (struct _EXCEPTION_RECORD* ExceptionRecord, struct _CONTEXT* ContextRecord)
-{
   long action;
 
   if (ExceptionRecord->ExceptionFlags & EXCEPTION_UNWINDING)
@@ -126,26 +117,3 @@
       _exit(ExceptionRecord->ExceptionCode);
     }
 }
-
-long CALLBACK
-_gnu_exception_handler (EXCEPTION_POINTERS *exception_data);
-
-long CALLBACK
-_gnu_exception_handler (EXCEPTION_POINTERS *exception_data)
-{
-  EXCEPTION_DISPOSITION action = __mingw_SEH_error_handler_helper (exception_data->ExceptionRecord, exception_data->ContextRecord);
-  switch (action)
-    {
-    case ExceptionContinueExecution:
-      return EXCEPTION_CONTINUE_EXECUTION;
-
-    case ExceptionContinueSearch:
-      return EXCEPTION_CONTINUE_SEARCH;
-
-    /* unhandled */
-    case ExceptionNestedException:
-    case ExceptionCollidedUnwind:
-    default:
-      return EXCEPTION_CONTINUE_SEARCH;
-    }
-}