Skip to content

Commit

Permalink
Remove old leftover line ending handling code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed May 26, 2017
1 parent 4a7029b commit 8699f74
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/IO/Pipe.pm
Expand Up @@ -8,10 +8,7 @@ my class IO::Pipe is IO::Handle {
else {
my $encoding = Rakudo::Internals.NORMALIZE_ENCODING($enc || 'utf-8');
nqp::bindattr(self, IO::Handle, '$!encoding', $encoding);
# XXX Remove next three lines after streaming decoder is in use
nqp::bindattr(self, IO::Handle, '$!PIO', nqp::decont($PIO));
nqp::setencoding(nqp::decont($PIO), $encoding);
Rakudo::Internals.SET_LINE_ENDING_ON_HANDLE(nqp::decont($PIO), $.nl-in);
my $decoder := Rakudo::Internals::VMBackedDecoder.new($encoding, :translate-nl);
$decoder.set-line-separators($.nl-in.list);
nqp::bindattr(self, IO::Handle, '$!decoder', $decoder);
Expand Down

0 comments on commit 8699f74

Please sign in to comment.