Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Aug 17, 2024
1 parent 67114b3 commit 01fa554
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions lib/App/Rak.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -697,22 +697,7 @@ TEXT
note .key ~ ': ' ~ .value.raku for %rak.sort(*.key);
}
$rak := do if List.ACCEPTS($needle) {
my sub gatherer($haystack) {
for $needle -> &code {
my \result := Regex.ACCEPTS(&code)
?? $haystack.contains(&code)
!! code($haystack);
return result
if result
|| !(result =:= False || result =:= Empty || result =:= Nil)
}
}
rak &gatherer, %rak;
}
else {
rak $needle, %rak;
}
$rak := rak $needle, %rak;
meh .message with $rak.exception;
note "Unexpected leftovers: %rak.raku()" if %rak;
}
Expand Down

0 comments on commit 01fa554

Please sign in to comment.