Skip to content

Commit

Permalink
Revert "[JVM] Restore old implementation of 'lazy gather'"
Browse files Browse the repository at this point in the history
This reverts commit 131d253.

No special case for the JVM backend needed anymore.
  • Loading branch information
usev6 committed Mar 18, 2020
1 parent e8e2d3c commit b4819e7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/core.c/Rakudo/Iterator.pm6
Expand Up @@ -2224,29 +2224,17 @@ class Rakudo::Iterator {
}

method pull-one() is raw {
#?if !jvm
nqp::ifnull(
$!iterator,
$!iterator := $!iterable.iterator
).pull-one
#?endif
#?if jvm
$!iterator := $!iterable.iterator unless $!iterator.DEFINITE;
$!iterator.pull-one
#?endif
}

method push-exactly(\target, int $n) {
#?if !jvm
nqp::ifnull(
$!iterator,
$!iterator := $!iterable.iterator
).push-exactly(target, $n);
#?endif
#?if jvm
$!iterator := $!iterable.iterator unless $!iterator.DEFINITE;
$!iterator.push-exactly(target, $n);
#?endif
}

method is-lazy(--> True) { }
Expand Down

0 comments on commit b4819e7

Please sign in to comment.