Skip to content
Permalink
Browse files

Remove 2 unneeded vars from Match!MATCH

  • Loading branch information...
lizmat committed Nov 30, 2018
1 parent 2dbef99 commit 38bc682b074e6a583fab20805a8e8e5ce16ff6ab
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/core/Match.pm6
@@ -25,11 +25,12 @@ my class Match is Capture is Cool does NQPMatchRole {
}

method !MATCH() {
my int $from = nqp::getattr_i(self, Match, '$!from');
my int $pos = nqp::getattr_i(self, Match, '$!pos');
my Mu $list;
my Mu $hash := nqp::hash();
if nqp::isge_i($pos, $from) {
if nqp::isge_i(
nqp::getattr_i(self,Match,'$!pos'),
nqp::getattr_i(self, Match, '$!from')
) {
# For captures with lists, initialize the lists.
my $caplist := $NO_CAPS;
my $rxsub := nqp::getattr(self, Match, '$!regexsub');

0 comments on commit 38bc682

Please sign in to comment.
You can’t perform that action at this time.