mirror of
https://github.com/darlinghq/darling-libobjc2.git
synced 2024-11-30 07:30:32 +00:00
Small cleanup of dtable code.
This commit is contained in:
parent
666c84c129
commit
121e14a3b8
9
dtable.c
9
dtable.c
@ -169,9 +169,6 @@ void __objc_update_dispatch_table_for_class(Class cls)
|
||||
objc_update_dtable_for_class(cls);
|
||||
}
|
||||
|
||||
static void __objc_install_dispatch_table_for_class(Class class);
|
||||
|
||||
|
||||
static SparseArray *create_dtable_for_class(Class class)
|
||||
{
|
||||
// Don't create a dtable for a class that already has one
|
||||
@ -187,7 +184,7 @@ static SparseArray *create_dtable_for_class(Class class)
|
||||
|
||||
if (Nil != super && !classHasInstalledDtable(super))
|
||||
{
|
||||
__objc_install_dispatch_table_for_class(super);
|
||||
super->dtable = create_dtable_for_class(super);
|
||||
}
|
||||
|
||||
SparseArray *dtable;
|
||||
@ -222,10 +219,6 @@ static SparseArray *create_dtable_for_class(Class class)
|
||||
return dtable;
|
||||
}
|
||||
|
||||
static void __objc_install_dispatch_table_for_class(Class class)
|
||||
{
|
||||
class->dtable = (void*)create_dtable_for_class(class);
|
||||
}
|
||||
|
||||
Class class_table_next(void **e);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user