Permalink
Browse files

make Capture.clone shallow.

tested against NQP-rx and Rakudo


git-svn-id: https://svn.parrot.org/parrot/branches/shallow_clone@45101 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
1 parent 3228b11 commit 39422f2dcb32189925a5d2de5a45c6940efd7e1f @plobsing plobsing committed Mar 22, 2010
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/pmc/capture.pmc
View
@@ -64,10 +64,6 @@ Creates an identical copy of the Capture.
PMC *dest = Parrot_pmc_new(INTERP, VTABLE_type(INTERP, SELF));
GET_ATTR_array(INTERP, SELF, array);
GET_ATTR_hash(INTERP, SELF, hash);
- if (array)
- array = VTABLE_clone(INTERP, array);
- if (hash)
- hash = VTABLE_clone(INTERP, hash);
SET_ATTR_array(INTERP, dest, array);
SET_ATTR_hash(INTERP, dest, hash);

0 comments on commit 39422f2

Please sign in to comment.