Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove special case in IO::Handle.write for parrot backend.
  • Loading branch information
donaldh committed May 28, 2014
1 parent f8a2b50 commit 65c175e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/core/IO.pm
Expand Up @@ -261,17 +261,7 @@ my class IO::Handle does IO::FileTestable {
}

method write(IO::Handle:D: Blob:D $buf) {
#?if parrot
# This relies on the Parrot 'binary' encoding and that nqp::decode
# passes encoding straight down to Parrot.
my str $encoding = $!PIO.encoding;
$!PIO.encoding('binary');
$!PIO.print(nqp::decode(nqp::decont($buf), 'binary'));
$!PIO.encoding($encoding) unless $encoding eq 'binary';
#?endif
#?if !parrot
nqp::writefh($!PIO, nqp::decont($buf));
#?endif
True;
}

Expand Down

0 comments on commit 65c175e

Please sign in to comment.