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

bacek at svn.parrot.org bacek at svn.parrot.org
Tue Jul 21 13:21:00 UTC 2009


Author: bacek
Date: Tue Jul 21 13:21:00 2009
New Revision: 40194
URL: https://trac.parrot.org/parrot/changeset/40194

Log:
[cage] Remove deprecated parrot_new_pmc_hash function

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

Modified: trunk/include/parrot/hash.h
==============================================================================
--- trunk/include/parrot/hash.h	Tue Jul 21 13:11:18 2009	(r40193)
+++ trunk/include/parrot/hash.h	Tue Jul 21 13:21:00 2009	(r40194)
@@ -194,12 +194,6 @@
         __attribute__nonnull__(1);
 
 PARROT_EXPORT
-void parrot_new_pmc_hash(PARROT_INTERP, ARGOUT(PMC *container))
-        __attribute__nonnull__(1)
-        __attribute__nonnull__(2)
-        FUNC_MODIFIES(*container);
-
-PARROT_EXPORT
 PARROT_CANNOT_RETURN_NULL
 Hash * parrot_new_pointer_hash(PARROT_INTERP)
         __attribute__nonnull__(1);
@@ -285,9 +279,6 @@
        PARROT_ASSERT_ARG(interp)
 #define ASSERT_ARGS_parrot_new_intval_hash __attribute__unused__ int _ASSERT_ARGS_CHECK = \
        PARROT_ASSERT_ARG(interp)
-#define ASSERT_ARGS_parrot_new_pmc_hash __attribute__unused__ int _ASSERT_ARGS_CHECK = \
-       PARROT_ASSERT_ARG(interp) \
-    || PARROT_ASSERT_ARG(container)
 #define ASSERT_ARGS_parrot_new_pointer_hash __attribute__unused__ int _ASSERT_ARGS_CHECK = \
        PARROT_ASSERT_ARG(interp)
 #define ASSERT_ARGS_int_compare __attribute__unused__ int _ASSERT_ARGS_CHECK = 0

Modified: trunk/src/hash.c
==============================================================================
--- trunk/src/hash.c	Tue Jul 21 13:11:18 2009	(r40193)
+++ trunk/src/hash.c	Tue Jul 21 13:21:00 2009	(r40194)
@@ -843,26 +843,6 @@
 
 /*
 
-=item C<void parrot_new_pmc_hash(PARROT_INTERP, PMC *container)>
-
-Creates a new Parrot STRING hash in C<container>.
-
-=cut
-
-*/
-
-PARROT_EXPORT
-void
-parrot_new_pmc_hash(PARROT_INTERP, ARGOUT(PMC *container))
-{
-    ASSERT_ARGS(parrot_new_pmc_hash)
-    Hash * const hash = parrot_new_hash(interp);
-    VTABLE_set_pointer(interp, container, hash);
-}
-
-
-/*
-
 =item C<Hash* parrot_new_cstring_hash(PARROT_INTERP)>
 
 Creates a new C string hash in C<hptr>.


More information about the parrot-commits mailing list