mirror of
https://github.com/darlinghq/darling-libobjc2.git
synced 2024-11-23 12:19:44 +00:00
Removed some dead variables.
This commit is contained in:
parent
51ab4a935a
commit
202006f6b8
17
class.c
17
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);
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user