From 202006f6b812b6dd11afccad066c084a6300f093 Mon Sep 17 00:00:00 2001 From: theraven Date: Wed, 6 Jan 2010 15:34:28 +0000 Subject: [PATCH] Removed some dead variables. --- class.c | 17 ----------------- sendmsg.c | 1 - sendmsg2.c | 2 +- 3 files changed, 1 insertion(+), 19 deletions(-) diff --git a/class.c b/class.c index c8f1564..46dfdf7 100644 --- a/class.c +++ b/class.c @@ -251,27 +251,10 @@ class_table_get_safe (const char *class_name) if (node->length == length) { /* Compare the class names. */ - int i; - if (strcmp(node->name, class_name) == 0) { return node->pointer; } -#if 0 - for (i = 0; i < length; i++) - { - if ((node->name)[i] != class_name[i]) - { - break; - } - } - - if (i == length) - { - /* They are equal! */ - return node->pointer; - } -#endif } } while ((node = node->next) != NULL); diff --git a/sendmsg.c b/sendmsg.c index 89cd432..c2f662c 100644 --- a/sendmsg.c +++ b/sendmsg.c @@ -624,7 +624,6 @@ void __objc_update_dispatch_table_for_class (Class class) { Class next; - struct sarray *arr; /* not yet installed -- skip it */ if (dtable_for_class(class) == __objc_uninstalled_dtable) diff --git a/sendmsg2.c b/sendmsg2.c index 33c0804..6a9c88c 100644 --- a/sendmsg2.c +++ b/sendmsg2.c @@ -104,6 +104,7 @@ Slot_t objc_msg_lookup_sender(id *receiver, SEL selector, id sender) return objc_plane_lookup(receiver, selector, sender); } +#ifdef PROFILE /** * When profiling, the runtime writes out two files, one containing tuples of * call sites and associated information, the other containing symbolic @@ -133,7 +134,6 @@ char *(*objc_profile_resolve_symbol)(void *addr) = // Don't enable profiling in the default build (yet) -#ifdef PROFILE struct profile_info { const char *module;