Author: coke
Date: Thu Nov  6 12:41:25 2008
New Revision: 32404

Modified:
   trunk/DEPRECATED.pod
   trunk/src/pmc/hash.pmc
   trunk/src/pmc/iterator.pmc
   trunk/tools/dev/vtablize.pl

Changes in other areas also in this revision:
Modified:
   trunk/docs/pdds/pdd17_pmc.pod

Log:
RT #48577 remove [DEPRECATED] vtable type_keyed


Modified: trunk/DEPRECATED.pod
==============================================================================
--- trunk/DEPRECATED.pod        (original)
+++ trunk/DEPRECATED.pod        Thu Nov  6 12:41:25 2008
@@ -25,10 +25,6 @@
 
 =over 4
 
-=item * C<type_keyed> [post 0.5.2]
-
-See RT #48577.
-
 =item * C<type> [post 0.5.2]
 
 See RT #48567.

Modified: trunk/src/pmc/hash.pmc
==============================================================================
--- trunk/src/pmc/hash.pmc      (original)
+++ trunk/src/pmc/hash.pmc      Thu Nov  6 12:41:25 2008
@@ -146,35 +146,6 @@
 
 /*
 
-=item C<INTVAL type_keyed(PMC *key)>
-
-Returns the type of the element for C<*key>.
-
-=cut
-
-*/
-
-    VTABLE INTVAL type_keyed(PMC *key) {
-        PMC               *valpmc;
-        PMC               *nextkey;
-        STRING     * const keystr = make_hash_key(INTERP, key);
-        HashBucket * const b      = parrot_hash_get_bucket(INTERP,
-            (Hash *)PMC_struct_val(SELF), keystr);
-
-        if (!b)
-            return 0;
-
-        nextkey = key_next(INTERP, key);
-        valpmc  = (PMC *)b->value;
-
-        if (!nextkey)
-            return VTABLE_type(INTERP, valpmc);
-
-        return VTABLE_type_keyed(INTERP, valpmc, nextkey);
-    }
-
-/*
-
 =item C<PMC *clone()>
 
 Creates and returns a clone of the hash.

Modified: trunk/src/pmc/iterator.pmc
==============================================================================
--- trunk/src/pmc/iterator.pmc  (original)
+++ trunk/src/pmc/iterator.pmc  Thu Nov  6 12:41:25 2008
@@ -648,20 +648,6 @@
         return VTABLE_defined_keyed_int(INTERP, agg, PMC_int_val(key) + idx);
     }
 
-/*
-
-=item C<INTVAL type_keyed(PMC *key)>
-
-Returns the result of calling C<type_keyed(key)> on the aggregate.
-
-=cut
-
-*/
-
-    VTABLE INTVAL type_keyed(PMC *key) {
-        return VTABLE_type_keyed(INTERP, PMC_pmc_val(SELF), key);
-    }
-
     VTABLE PMC *get_iter() {
         return SELF;
     }

Modified: trunk/tools/dev/vtablize.pl
==============================================================================
--- trunk/tools/dev/vtablize.pl (original)
+++ trunk/tools/dev/vtablize.pl Thu Nov  6 12:41:25 2008
@@ -41,7 +41,6 @@
 s/^(\s*)(void\s+delprop\(STRING\s+\*\w*\)\s+{)/$1VTABLE $2/;
 s/^(\s*)(PMC\s+\*getprops\(\)\s+{)/$1VTABLE $2/;
 s/^(\s*)(INTVAL\s+type\(\)\s+{)/$1VTABLE $2/;
-s/^(\s*)(INTVAL\s+type_keyed\(PMC\s+\*\w*\)\s+{)/$1VTABLE $2/;
 s/^(\s*)(UINTVAL\s+subtype\(INTVAL\s+\w*\)\s+{)/$1VTABLE $2/;
 s/^(\s*)(STRING\s+\*name\(\)\s+{)/$1VTABLE $2/;
 s/^(\s*)(PMC\s+\*clone\(\)\s+{)/$1VTABLE $2/;

Reply via email to