This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
libobjc: Remove unused code (patch 4)
- From: "Nicola Pero" <nicola dot pero at meta-innovation dot com>
- To: "gcc-patches at gnu dot org" <gcc-patches at gnu dot org>
- Date: Wed, 8 Jun 2011 00:25:25 +0200 (CEST)
- Subject: libobjc: Remove unused code (patch 4)
Another cleanup patch. Committed to trunk.
Thanks
Index: sendmsg.c
===================================================================
--- sendmsg.c (revision 174766)
+++ sendmsg.c (working copy)
@@ -62,7 +62,9 @@ see the files COPYING3 and COPYING.RUNTIME respect
#define INVISIBLE_STRUCT_RETURN 0
#endif
-/* The uninstalled dispatch table. */
+/* The uninstalled dispatch table. If a class' dispatch table points
+ to __objc_uninstalled_dtable then that means it needs its dispatch
+ table to be installed. */
struct sarray *__objc_uninstalled_dtable = 0; /* !T:MUTEX */
/* Two hooks for method forwarding. If either is set, it is invoked to
@@ -469,9 +471,6 @@ objc_msg_lookup_super (struct objc_super *super, S
return (IMP)nil_method;
}
-struct objc_method *
-class_get_instance_method (Class class, SEL op);
-
void
__objc_init_dispatch_tables ()
{
@@ -645,18 +644,6 @@ class_add_method_list (Class class, struct objc_me
}
struct objc_method *
-class_get_instance_method (Class class, SEL op)
-{
- return search_for_method_in_hierarchy (class, op);
-}
-
-struct objc_method *
-class_get_class_method (Class class, SEL op)
-{
- return search_for_method_in_hierarchy (class, op);
-}
-
-struct objc_method *
class_getInstanceMethod (Class class_, SEL selector)
{
struct objc_method *m;
@@ -1001,15 +988,6 @@ __objc_print_dtable_stats (void)
objc_mutex_unlock (__objc_runtime_mutex);
}
-/* Returns the uninstalled dispatch table indicator. If a class'
- dispatch table points to __objc_uninstalled_dtable then that means
- it needs its dispatch table to be installed. */
-struct sarray *
-objc_get_uninstalled_dtable (void)
-{
- return __objc_uninstalled_dtable;
-}
-
static cache_ptr prepared_dtable_table = 0;
/* This function is called by: objc_msg_lookup, get_imp and
Index: ChangeLog
===================================================================
--- ChangeLog (revision 174773)
+++ ChangeLog (working copy)
@@ -1,5 +1,11 @@
2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
+ * sendmsg.c (class_get_instance_method): Removed.
+ (class_get_class_method): Removed.
+ (objc_get_uninstalled_dtable): Removed.
+
+2011-06-07 Nicola Pero <nicola.pero@meta-innovation.com>
+
* objc-private/module-abi-8.h (class_get_instance_size): Removed.
* objects.c (class_create_instance): Removed.
* error.c (__USE_FIXED_PROTOTYPES__): Removed.