exception.c:747:1: warning: 'mono_new_exception_argument_out_of_range' defined but...
authorJay Krell <jaykrell@microsoft.com>
Thu, 13 Jun 2019 08:50:36 +0000 (01:50 -0700)
committerLarry Ewing <lewing@microsoft.com>
Tue, 18 Jun 2019 02:53:08 +0000 (21:53 -0500)
 mono_new_exception_argument_out_of_range (const char *arg, MonoError *error)
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Commit migrated from https://github.com/mono/mono/commit/00570db6a4d7bf5c87e5508c0e4f097fde6c04aa

src/mono/mono/metadata/exception.c

index 2652bfa..38fb928 100644 (file)
@@ -743,12 +743,6 @@ mono_get_exception_argument_out_of_range (const char *arg)
        return mono_get_exception_argument_internal ("ArgumentOutOfRangeException", arg, NULL);
 }
 
-static MonoExceptionHandle
-mono_new_exception_argument_out_of_range (const char *arg, MonoError *error)
-{
-       return mono_exception_new_argument_internal ("ArgumentOutOfRangeException", arg, NULL, error);
-}
-
 /**
  * mono_get_exception_thread_state:
  * \param msg the message to present to the user