[svn:parrot] r41538 - in trunk: include/parrot src

NotFound at svn.parrot.org NotFound at svn.parrot.org
Sun Sep 27 20:46:49 UTC 2009


Author: NotFound
Date: Sun Sep 27 20:46:48 2009
New Revision: 41538
URL: https://trac.parrot.org/parrot/changeset/41538

Log:
[cage] kill unused and unneeded function Parrot_oo_new_object_attrs

Modified:
   trunk/include/parrot/oo.h
   trunk/src/oo.c

Modified: trunk/include/parrot/oo.h
==============================================================================
--- trunk/include/parrot/oo.h	Sun Sep 27 19:24:10 2009	(r41537)
+++ trunk/include/parrot/oo.h	Sun Sep 27 20:46:48 2009	(r41538)
@@ -168,11 +168,6 @@
 PMC * Parrot_oo_get_namespace(SHIM_INTERP, ARGIN(const PMC *classobj))
         __attribute__nonnull__(2);
 
-PARROT_CANNOT_RETURN_NULL
-void * Parrot_oo_new_object_attrs(PARROT_INTERP, ARGIN(PMC * class_))
-        __attribute__nonnull__(1)
-        __attribute__nonnull__(2);
-
 PARROT_CAN_RETURN_NULL
 PARROT_WARN_UNUSED_RESULT
 PMC * Parrot_oo_newclass_from_str(PARROT_INTERP, ARGIN(STRING *name))
@@ -244,9 +239,6 @@
     , PARROT_ASSERT_ARG(ns))
 #define ASSERT_ARGS_Parrot_oo_get_namespace __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
        PARROT_ASSERT_ARG(classobj))
-#define ASSERT_ARGS_Parrot_oo_new_object_attrs __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
-       PARROT_ASSERT_ARG(interp) \
-    , PARROT_ASSERT_ARG(class_))
 #define ASSERT_ARGS_Parrot_oo_newclass_from_str __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
        PARROT_ASSERT_ARG(interp) \
     , PARROT_ASSERT_ARG(name))

Modified: trunk/src/oo.c
==============================================================================
--- trunk/src/oo.c	Sun Sep 27 19:24:10 2009	(r41537)
+++ trunk/src/oo.c	Sun Sep 27 20:46:48 2009	(r41538)
@@ -327,30 +327,6 @@
 
 /*
 
-=item C<void * Parrot_oo_new_object_attrs(PARROT_INTERP, PMC * class_)>
-
-Create a new C<Parrot_Object_attributes> structure to hold data for an Object
-PMC. We need this for places which create a new Object without instantiating it
-through its associated class, such as in C<Parrot_oo_clone_object>.
-
-=cut
-
-*/
-
-PARROT_CANNOT_RETURN_NULL
-void *
-Parrot_oo_new_object_attrs(PARROT_INTERP, ARGIN(PMC * class_))
-{
-    ASSERT_ARGS(Parrot_oo_new_object_attrs)
-    Parrot_Object_attributes * const obj_guts =
-        mem_allocate_typed(Parrot_Object_attributes);
-    obj_guts->_class       = class_;
-    obj_guts->attrib_store = pmc_new(interp, enum_class_ResizablePMCArray);
-    return (void *)obj_guts;
-}
-
-/*
-
 =item C<static PMC * get_pmc_proxy(PARROT_INTERP, INTVAL type)>
 
 Get the PMC proxy for a PMC with the given type, creating it if does not exist.


More information about the parrot-commits mailing list