Skip to content

Commit

Permalink
remove old Substitution hack
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jul 26, 2010
1 parent ed98e0f commit 9808d7c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 20 deletions.
1 change: 0 additions & 1 deletion build/Makefile.in
Expand Up @@ -222,7 +222,6 @@ CORE_SOURCES = \
src/core/Regex.pm \
src/core/Junction.pm \
src/core/Grammar.pm \
src/core/Substitution.pm \
src/core/system.pm \
src/cheats/process.pm \
src/core/tai-utc.pm \
Expand Down
2 changes: 1 addition & 1 deletion src/Perl6/Actions.pm
Expand Up @@ -2709,7 +2709,7 @@ method quote:sym<s>($/) {
);
my $closure := block_closure($closure_ast, 'Block', 0);

# Make a Substitution.
# make $_ = $_.subst(...)
my $past := PAST::Op.new(
:node($/),
:pasttype('callmethod'), :name('subst'),
Expand Down
13 changes: 0 additions & 13 deletions src/core/Substitution.pm

This file was deleted.

5 changes: 0 additions & 5 deletions src/core/operators.pm
Expand Up @@ -11,11 +11,6 @@ our multi infix:<~~>(Mu $topic, Regex $matcher) {
};
}
class Substitution { ... }
our multi infix:<~~>(Mu $topic is rw, Substitution $matcher) {
$matcher.ACCEPTS($topic)
}

our multi prefix:<?>(Mu $a) {
pir::can($a, 'Bool')
?? $a.Bool
Expand Down

0 comments on commit 9808d7c

Please sign in to comment.