Patchwork =?UTF-8?Q?libobjc:=20header=20cleanup=20for=20new=20API=20(13)?=

login
register
mail settings
Submitter Nicola Pero
Date Dec. 19, 2010, 6:01 p.m.
Message ID <1292781713.02524390@192.168.2.227>
Download mbox | patch
Permalink /patch/76148/
State New
Headers show

Comments

Nicola Pero - Dec. 19, 2010, 6:01 p.m.
This patch removes 3 un-needed declarations from objc-private/runtime.h.

Committed to trunk.

Thanks

Patch

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  <nicola.pero@meta-innovation.com>
 
+       * 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  <nicola.pero@meta-innovation.com>
+
        * init.c (__objc_exec_class): Call __objc_resolve_class_links (),
        if appropriate, after loading the module.