Removed some dead variables.

main
theraven 16 years ago
parent 51ab4a935a
commit 202006f6b8

@ -251,27 +251,10 @@ class_table_get_safe (const char *class_name)
if (node->length == length) if (node->length == length)
{ {
/* Compare the class names. */ /* Compare the class names. */
int i;
if (strcmp(node->name, class_name) == 0) if (strcmp(node->name, class_name) == 0)
{ {
return node->pointer; 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); while ((node = node->next) != NULL);

@ -624,7 +624,6 @@ void
__objc_update_dispatch_table_for_class (Class class) __objc_update_dispatch_table_for_class (Class class)
{ {
Class next; Class next;
struct sarray *arr;
/* not yet installed -- skip it */ /* not yet installed -- skip it */
if (dtable_for_class(class) == __objc_uninstalled_dtable) if (dtable_for_class(class) == __objc_uninstalled_dtable)

@ -104,6 +104,7 @@ Slot_t objc_msg_lookup_sender(id *receiver, SEL selector, id sender)
return objc_plane_lookup(receiver, selector, sender); return objc_plane_lookup(receiver, selector, sender);
} }
#ifdef PROFILE
/** /**
* When profiling, the runtime writes out two files, one containing tuples of * When profiling, the runtime writes out two files, one containing tuples of
* call sites and associated information, the other containing symbolic * 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) // Don't enable profiling in the default build (yet)
#ifdef PROFILE
struct profile_info struct profile_info
{ {
const char *module; const char *module;

Loading…
Cancel
Save