From patchwork Sun Dec 19 18:01:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: =?UTF-8?Q?libobjc:=20header=20cleanup=20for=20new=20API=20(13)?= From: Nicola Pero X-Patchwork-Id: 76148 Message-Id: <1292781713.02524390@192.168.2.227> To: "gcc-patches@gnu.org" Date: Sun, 19 Dec 2010 19:01:53 +0100 (CET) This patch removes 3 un-needed declarations from objc-private/runtime.h. Committed to trunk. Thanks Index: sendmsg.c =================================================================== --- sendmsg.c (revision 168065) +++ sendmsg.c (working copy) @@ -980,7 +980,7 @@ } void -__objc_print_dtable_stats () +__objc_print_dtable_stats (void) { int total = 0; Index: objc-private/runtime.h =================================================================== --- objc-private/runtime.h (revision 168065) +++ objc-private/runtime.h (working copy) @@ -66,7 +66,6 @@ extern int __objc_init_thread_system(void); /* thread.c */ extern int __objc_fini_thread_system(void); /* thread.c */ -extern void __objc_print_dtable_stats(void); /* sendmsg.c */ extern void __objc_init_class (Class class); /* init.c */ extern void class_add_method_list(Class, struct objc_method_list *); @@ -77,9 +76,6 @@ extern void __objc_update_classes_with_methods (struct objc_method *method_a, struct objc_method *method_b); /* class.c */ -/* True when class links has been resolved */ -extern BOOL __objc_class_links_resolved; - /* Number of selectors stored in each of the selector tables */ extern unsigned int __objc_selector_max_index; @@ -96,8 +92,6 @@ #endif BOOL __objc_responds_to (id object, SEL sel); /* for internal use only! */ -SEL __sel_register_typed_name (const char*, const char*, - struct objc_selector*, BOOL is_const); extern void __objc_generate_gc_type_description (Class); #ifdef __cplusplus Index: ChangeLog =================================================================== --- ChangeLog (revision 168065) +++ ChangeLog (working copy) @@ -1,5 +1,12 @@ 2010-12-19 Nicola Pero + * objc-private/runtime.h (__objc_class_links_resolved): Removed. + (__objc_print_dtable_stats): Removed. + (__sel_register_typed_name): Removed. + * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument. + +2010-12-19 Nicola Pero + * init.c (__objc_exec_class): Call __objc_resolve_class_links (), if appropriate, after loading the module.