Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
do not override nqp's make/made methods
NQPMatchRole from nqp now provides all our $!made service.
  • Loading branch information
TimToady committed Apr 13, 2017
1 parent 5069294 commit 18bb9be
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/core/Match.pm
@@ -1,7 +1,6 @@
my class DidMatch { method Bool { 1 } }

my class Match is Capture is Cool does NQPMatchRole {
# has $!made; # Need it to survive re-creations of the match object.
my Mu $EMPTY_LIST := nqp::list();
my Mu $NO_CAPS := nqp::hash();

Expand Down Expand Up @@ -471,8 +470,6 @@ my class Match is Capture is Cool does NQPMatchRole {
self.Mu::WHICH # skip Capture's as Match is not a value type
}

method ast(Match:D:) { $!made }

multi method Numeric(Match:D:) {
self.Str.Numeric
}
Expand Down Expand Up @@ -535,15 +532,6 @@ my class Match is Capture is Cool does NQPMatchRole {
$d == 0 ?? $r.chomp !! $r;
}

method make(Match:D: Mu \made) {
$!made := made;
nqp::bindattr(
nqp::decont(self),
Match,
'$!made',
made
);
}
}

multi sub infix:<eqv>(Match:D $a, Match:D $b) {
Expand Down

0 comments on commit 18bb9be

Please sign in to comment.