Skip to content

Commit

Permalink
Simplify Match.clone
Browse files Browse the repository at this point in the history
Seems like something was leftover from a debugging session
  • Loading branch information
lizmat committed Jun 11, 2020
1 parent 0b48651 commit 537a6e4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core.c/Match.pm6
Expand Up @@ -852,10 +852,7 @@ my class Match is Capture is Cool does NQPMatchRole {
nqp::bindattr( self, Match, '$!made', nqp::decont($made)) if $made.defined;
}
method clone() {
my $new := nqp::clone(self);
$new;
}
method clone() is raw { nqp::clone(self) }
multi method WHICH(Match:D: --> ObjAt:D) {
self.Mu::WHICH # skip Capture's as Match is not a value type
Expand Down

0 comments on commit 537a6e4

Please sign in to comment.