From 01fa55420c3a6c7026b6949c063f61d5855b1d31 Mon Sep 17 00:00:00 2001 From: Elizabeth Mattijsen Date: Sat, 17 Aug 2024 15:49:05 +0200 Subject: [PATCH] Remove dead code --- lib/App/Rak.rakumod | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/lib/App/Rak.rakumod b/lib/App/Rak.rakumod index d97fe5c..3215162 100644 --- a/lib/App/Rak.rakumod +++ b/lib/App/Rak.rakumod @@ -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; }