From 537a6e4170450e81335339a68a87bc16b9006bfd Mon Sep 17 00:00:00 2001 From: Elizabeth Mattijsen Date: Thu, 11 Jun 2020 13:57:17 +0200 Subject: [PATCH] Simplify Match.clone Seems like something was leftover from a debugging session --- src/core.c/Match.pm6 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core.c/Match.pm6 b/src/core.c/Match.pm6 index f672aacb5e3..dd66b7bba55 100644 --- a/src/core.c/Match.pm6 +++ b/src/core.c/Match.pm6 @@ -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