Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove paranoid check
If you're going to mix high level methods with low level methods, you're
going to get what you ask for
  • Loading branch information
lizmat committed Oct 23, 2015
1 parent f16b146 commit f25bbe7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/core/IO/Handle.pm
Expand Up @@ -138,9 +138,6 @@ my class IO::Handle does IO {
}

multi method split(IO::Handle:D: :$close, :$COMB) {
X::NYI.new(feature => "'split' without closing the file handle").throw
if !$close;

Seq.new(class :: does Iterator {
has Mu $!handle;
has int $!close;
Expand Down Expand Up @@ -225,9 +222,6 @@ my class IO::Handle does IO {
return self.split(:$close,:$COMB)
if nqp::istype($splitter,Cool) && $splitter.Str.chars == 0;

X::NYI.new(feature => "'split' without closing the file handle").throw
if !$close;

Seq.new(class :: does Iterator {
has Mu $!handle;
has Mu $!regex;
Expand Down Expand Up @@ -347,9 +341,6 @@ my class IO::Handle does IO {

proto method words (|) { * }
multi method words(IO::Handle:D: :$close) {
X::NYI.new(feature => "'words' without closing the file handle").throw
if !$close;

Seq.new(class :: does Iterator {
has $!handle;
has $!close;
Expand Down

0 comments on commit f25bbe7

Please sign in to comment.