Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
REJECTS is gone from the spec, so toss it from Rakudo too.
  • Loading branch information
jnthn committed Jul 16, 2010
1 parent f74314f commit b612d4a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 29 deletions.
16 changes: 0 additions & 16 deletions src/builtins/Mu.pir
Expand Up @@ -338,22 +338,6 @@ Report the object's true nature.
.end
=item REJECTS(topic)
Define REJECTS methods for objects (this would normally
be part of the Pattern role, but we put it here for now
until we get roles).
=cut
.sub 'REJECTS' :method
.param pmc topic
$P0 = self.'ACCEPTS'(topic)
$P1 = '&prefix:<!>'($P0)
.return ($P1)
.end
=item WHENCE()
Return the invocant's auto-vivification closure.
Expand Down
6 changes: 0 additions & 6 deletions src/cheats/parrot/P6role.pir
Expand Up @@ -108,12 +108,6 @@ Puns the role to a class and returns that class.
done:
.return ($I0)
.end
.sub 'REJECTS' :method
.param pmc topic
$P0 = self.'ACCEPTS'(topic)
$I0 = isfalse $P0
.return ($I0)
.end


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


our multi infix:<!~~>(Mu $topic, Mu $matcher) {
$matcher.REJECTS($topic)
}

our multi prefix:<?>(Mu $a) {
pir::can($a, 'Bool')
?? $a.Bool
Expand Down
2 changes: 0 additions & 2 deletions src/pmc/p6role.pmc
Expand Up @@ -29,8 +29,6 @@ pmclass P6role extends Role dynpmc group perl6_group auto_attrs {
return SUPER(name);
if (Parrot_str_equal(interp, name, CONST_STRING(interp, "ACCEPTS")))
return SUPER(name);
if (Parrot_str_equal(interp, name, CONST_STRING(interp, "REJECTS")))
return SUPER(name);
if (Parrot_str_equal(interp, name, CONST_STRING(interp, "attributes")))
return SUPER(name);
if (Parrot_str_equal(interp, name, CONST_STRING(interp, "methods")))
Expand Down

0 comments on commit b612d4a

Please sign in to comment.