Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[src/core/Range.pm] remove method
It had no spectest coverage, and I don't much agree with its
semantics.
  • Loading branch information
Carl Masak committed Apr 5, 2012
1 parent be058f9 commit 8dada65
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/core/Range.pm
Expand Up @@ -39,13 +39,6 @@ class Range is Iterable does Positional {
and ($topic cmp $!max) < +(!$!excludes_max)
}

multi method ACCEPTS(Range:D: Range \$topic) {
?( $.min eqv $topic.min
&& $.max eqv $topic.max
&& $.excludes_min === $topic.excludes_min
&& $.excludes_max === $topic.excludes_max)
}

method reify($n = 10) {
my $value = $!excludes_min ?? $!min.succ !! $!min;
# Iterating a Str range delegates to iterating a sequence.
Expand Down

0 comments on commit 8dada65

Please sign in to comment.