Patchwork libobjc: Remove unused code (patch 2)

login
register
mail settings
Submitter Nicola Pero
Date June 7, 2011, 9:36 p.m.
Message ID <1307482604.056821352@www2.webmail.us>
Download mbox | patch
Permalink /patch/99332/
State New
Headers show

Comments

Nicola Pero - June 7, 2011, 9:36 p.m.
Removed more code in libobjc that is no longer used anywhere.

Committed to trunk.

Thanks

Patch

Index: encoding.c
===================================================================
--- encoding.c  (revision 174766)
+++ encoding.c  (working copy)
@@ -993,22 +993,6 @@  method_getNumberOfArguments (struct objc_method *m
     }
 }
 
-int
-method_get_number_of_arguments (struct objc_method *mth)
-{
-  return method_getNumberOfArguments (mth);
-}
-
-/* Return the size of the argument block needed on the stack to invoke
-   the method MTH.  This may be zero, if all arguments are passed in
-   registers.  */
-int
-method_get_sizeof_arguments (struct objc_method *mth)
-{
-  const char *type = objc_skip_typespec (mth->method_types);
-  return atoi (type);
-}
-
 unsigned
 objc_get_type_qualifiers (const char *type)
 {
Index: ChangeLog
===================================================================
--- ChangeLog   (revision 174767)
+++ ChangeLog   (working copy)
@@ -1,5 +1,10 @@ 
 2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
 
+       * encoding.c (method_get_number_of_arguments): Removed.
+       (method_get_sizeof_arguments): Removed.
+
+2011-06-07  Nicola Pero  <nicola.pero@meta-innovation.com>
+
        * class.c (objc_next_class): Removed.
        (class_pose_as): Removed.
        (CLASSOF): Removed.