Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Druid::View::Text] removed some out-of-date RAKUDO comments

  • Loading branch information...
commit 631246580b655ff02360c6485b1ebb9779a6fcc8 1 parent 4bb79f9
@masak authored
Showing with 2 additions and 7 deletions.
  1. +2 −7 lib/Druid/View/Text.pm
View
9 lib/Druid/View/Text.pm
@@ -92,14 +92,9 @@ method Str() {
}
method build-layers($board is copy, $from) {
- # RAKUDO: Something strange happens when passing Ints as parameters
- my $from-copy = +$from;
- # RAKUDO: Something about array indices and list context
- my @layers = $from-copy == @.layers.end
- ?? @.layers[$from-copy]
- !! @.layers[$from-copy .. @.layers.end];
+ my @layers = @.layers[$from .. @.layers.end];
for @layers.kv -> $relheight, $layer {
- my $height = $relheight + $from-copy;
+ my $height = $relheight + $from;
for $layer.kv.reverse -> $line, $row {
for $line.kv.reverse -> $cell, $column {
Please sign in to comment.
Something went wrong with that request. Please try again.