aboutsummaryrefslogtreecommitdiff
path: root/libobjc/exception.c
diff options
context:
space:
mode:
authorNicola Pero <nicola.pero@meta-innovation.com>2011-06-03 19:15:23 +0000
committerNicola Pero <nicola@gcc.gnu.org>2011-06-03 19:15:23 +0000
commit309ce401bcbab1b68e4c15e5130cf84bc7ec0e66 (patch)
tree43cb298fe356fef3fd9afe487864fd08bd5a3f09 /libobjc/exception.c
parent4f570b66f187078ecf074830b0c56d29030e7a8a (diff)
downloadgcc-309ce401bcbab1b68e4c15e5130cf84bc7ec0e66.zip
gcc-309ce401bcbab1b68e4c15e5130cf84bc7ec0e66.tar.gz
gcc-309ce401bcbab1b68e4c15e5130cf84bc7ec0e66.tar.bz2
In libobjc/: 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/: 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com> * Makefile.in (OBJC_DEPRECATED_H): Removed objc_valloc.h, objc_malloc.h and objc_unexpected_exception.h. (exception.lo): Do not use -Wno-deprecated-declarations. (exception_gc.lo): Likewise. * objc/objc-api.h: Do not include deprecated/objc_valloc.h, deprecated/objc_malloc.h and deprecated/objc_unexpected_exception.h. * objc/deprecated/objc_valloc.h: Removed. * objc/deprecated/objc_malloc.h: Removed. * objc/deprecated/objc_unexpected_exception.h: Removed. * exception.c (_objc_unexpected_exception): Removed. (objc_exception_throw): Do not check for _objc_unexpected_exception. * memory.c (objc_valloc, _objc_malloc, _objc_atomic_malloc, _objc_valloc, _objc_realloc, _objc_calloc, _objc_free): Removed. * libobjc.def (_objc_unexpected_exception, objc_valloc): Removed. From-SVN: r174615
Diffstat (limited to 'libobjc/exception.c')
-rw-r--r--libobjc/exception.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/libobjc/exception.c b/libobjc/exception.c
index 1ffb80b..37daed8 100644
--- a/libobjc/exception.c
+++ b/libobjc/exception.c
@@ -31,12 +31,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "unwind-pe.h"
#include <string.h> /* For memcpy */
-/* This hook allows libraries to sepecify special actions when an
- exception is thrown without a handler in place. This is deprecated
- in favour of objc_set_uncaught_exception_handler (). */
-void (*_objc_unexpected_exception) (id exception); /* !T:SAFE */
-
-
/* 'is_kind_of_exception_matcher' is our default exception matcher -
it determines if the object 'exception' is of class 'catch_class',
or of a subclass. */
@@ -539,13 +533,6 @@ objc_exception_throw (id exception)
(*__objc_uncaught_exception_handler) (exception);
}
- /* As a last resort support the old, deprecated way of setting an
- uncaught exception handler. */
- if (_objc_unexpected_exception != 0)
- {
- (*_objc_unexpected_exception) (exception);
- }
-
abort ();
}