Removed some dead variables.

This commit is contained in:
theraven 2010-01-06 15:34:28 +00:00
parent 51ab4a935a
commit 202006f6b8
3 changed files with 1 additions and 19 deletions

17
class.c
View File

@ -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);

View File

@ -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)

View File

@ -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;