Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do some more birdlessing
  • Loading branch information
lizmat committed Feb 20, 2015
1 parent b327d0e commit c1116de
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions src/core/PIO.pm
Expand Up @@ -243,33 +243,17 @@ my role PIO {
if $.chomp {
gather {
until nqp::eoffh($!PIO) {
#?if parrot
my Mu $line := nqp::readlinefh($!PIO);
last if nqp::eoffh($!PIO);
$!ins = $!ins + 1;
take nqp::p6box_s($line).chomp;
#?endif
#?if !parrot
$!ins = $!ins + 1;
take nqp::p6box_s(nqp::readlinefh($!PIO)).chomp;
#?endif
}
self.close if $close;
}
}
else {
gather {
until nqp::eoffh($!PIO) {
#?if parrot
my Mu $line := nqp::readlinefh($!PIO);
last if nqp::eoffh($!PIO);
$!ins = $!ins + 1;
take nqp::p6box_s($line);
#?endif
#?if !parrot
$!ins = $!ins + 1;
take nqp::p6box_s(nqp::readlinefh($!PIO));
#?endif
}
self.close if $close;
}
Expand All @@ -282,26 +266,12 @@ my role PIO {
my Mu $rpa := nqp::list();
if $.chomp {
until nqp::eoffh($!PIO) {
#?if parrot
my Mu $line := nqp::readlinefh($!PIO);
last if nqp::eoffh($!PIO);
nqp::push($rpa, nqp::p6box_s($line).chomp);
#?endif
#?if !parrot
nqp::push($rpa, nqp::p6box_s(nqp::readlinefh($!PIO)).chomp );
#?endif
}
}
else {
until nqp::eoffh($!PIO) {
#?if parrot
my Mu $line := nqp::readlinefh($!PIO);
last if nqp::eoffh($!PIO);
nqp::push($rpa, nqp::p6box_s($line));
#?endif
#?if !parrot
nqp::push($rpa, nqp::p6box_s(nqp::readlinefh($!PIO)) );
#?endif
}
}
$!ins = nqp::elems($rpa);
Expand All @@ -313,9 +283,6 @@ my role PIO {

until nqp::eoffh($!PIO) {
nqp::readlinefh($!PIO);
#?if parrot
last if nqp::eoffh($!PIO);
#?endif
$!ins = $!ins + 1;
}
nqp::box_i($!ins, Int);
Expand All @@ -329,26 +296,12 @@ my role PIO {
if $.chomp {
while $count = $count - 1 {
last if nqp::eoffh($!PIO);
#?if parrot
my Mu $line := nqp::readlinefh($!PIO);
last if nqp::eoffh($!PIO);
nqp::push($rpa, nqp::p6box_s($line).chomp);
#?endif
#?if !parrot
nqp::push($rpa, nqp::p6box_s(nqp::readlinefh($!PIO)).chomp );
#?endif
}
}
else {
while $count = $count - 1 {
#?if parrot
my Mu $line := nqp::readlinefh($!PIO);
last if nqp::eoffh($!PIO);
nqp::push($rpa, nqp::p6box_s($line));
#?endif
#?if !parrot
nqp::push($rpa, nqp::p6box_s(nqp::readlinefh($!PIO)) );
#?endif
}
}
$!ins = nqp::elems($rpa);
Expand Down

0 comments on commit c1116de

Please sign in to comment.