Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
simplify preprocessor directives
and remove a stray §?endif
  • Loading branch information
moritz committed Sep 10, 2014
1 parent a09f17d commit 1cc69a7
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/core/IO/Socket/INET.pm
Expand Up @@ -119,16 +119,7 @@ my class IO::Socket::INET does IO::Socket {

my str $line = $PIO.readline($sep);
#?endif
#?if jvm
my str $sep = nqp::unbox_s($!input-line-separator);
my int $sep-len = nqp::chars($sep);

my Mu $io := nqp::getattr(self, $?CLASS, '$!PIO');
nqp::setencoding($io, nqp::unbox_s($!encoding));
nqp::setinputlinesep($io, $sep);
my Str $line = nqp::p6box_s(nqp::readlinefh($io));
#?endif
#?if moar
#?if !parrot
my str $sep = nqp::unbox_s($!input-line-separator);
my int $sep-len = nqp::chars($sep);

Expand All @@ -147,7 +138,6 @@ my class IO::Socket::INET does IO::Socket {
?? nqp::p6box_s(nqp::substr($line, 0, $len - $sep-len))
!! nqp::p6box_s($line);
}
#?endif
}

method lines() {
Expand Down

0 comments on commit 1cc69a7

Please sign in to comment.