Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 39422f2dcb32189925a5d2de5a45c6940efd7e1f 1 parent 3228b11
@plobsing plobsing authored
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/pmc/capture.pmc
View
4 src/pmc/capture.pmc
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.