Skip to content

Commit

Permalink
Remove two unneeded "is copy"s
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Sep 28, 2019
1 parent 6f5232f commit 3697325
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core.c/IO/CatHandle.pm6
Expand Up @@ -326,7 +326,7 @@ my class IO::CatHandle is IO::Handle {

proto method encoding(|) {*}
multi method encoding(::?CLASS:D:) { $!encoding || Nil }
multi method encoding(::?CLASS:D: $enc is copy) {
multi method encoding(::?CLASS:D: $enc) {
$!encoding = nqp::if(
nqp::defined($!active-handle),
$!active-handle.encoding($enc),
Expand Down
2 changes: 1 addition & 1 deletion src/core.c/Str.pm6
Expand Up @@ -475,7 +475,7 @@ my class Str does Stringy { # declared in BOOTSTRAP
}
}

multi method comb(Str:D: Int:D $size is copy, $limit = * --> Seq:D) {
multi method comb(Str:D: Int:D $size, $limit = * --> Seq:D) {
$size <= 1 && (nqp::istype($limit,Whatever) || $limit == Inf)
?? self.comb
!! Seq.new(CombN.new(self,$size,$limit))
Expand Down

0 comments on commit 3697325

Please sign in to comment.