From 121e14a3b89c8aa4f472d9ed53b679e7748aef9b Mon Sep 17 00:00:00 2001 From: theraven Date: Wed, 30 Jun 2010 11:49:19 +0000 Subject: [PATCH] Small cleanup of dtable code. --- dtable.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/dtable.c b/dtable.c index 14ac0aa..bfa6488 100644 --- a/dtable.c +++ b/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);