Skip to content

Commit

Permalink
Merge pull request #4172 from stoned/unimatch-drop-multi
Browse files Browse the repository at this point in the history
Remove a now unneeded unimatch multi
  • Loading branch information
niner committed Jan 19, 2021
2 parents f623f1b + 6306f1e commit e7a46bc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/core.c/Cool.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -737,10 +737,6 @@ multi sub uniprops(Str:D $str, Stringy:D $propname = "General_Category") {

proto sub unimatch($, |) {*}
multi sub unimatch(Str:D $str, |c) { $str ?? unimatch($str.ord, |c) !! Nil }
# This multi below can be removed when MoarVM bug #448 is fixed
multi sub unimatch(Int:D $code, Stringy:D $pvalname, Stringy:D $propname) {
uniprop($code, $propname) eq $pvalname;
}
multi sub unimatch(Int:D $code, Stringy:D $pvalname, Stringy:D $propname = $pvalname) {
my $prop := nqp::unipropcode($propname);
nqp::hllbool(nqp::matchuniprop($code,$prop,nqp::unipvalcode($prop,$pvalname)));
Expand Down

0 comments on commit e7a46bc

Please sign in to comment.