From 9d0f411012ec02c1991ebd41b3a6f0c1ec97f6cf Mon Sep 17 00:00:00 2001 From: Eric Ihli Date: Wed, 23 Jun 2021 23:24:58 -0500 Subject: [PATCH] Remove unnecessary code --- src/com/owoga/corpus/markov.clj | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/com/owoga/corpus/markov.clj b/src/com/owoga/corpus/markov.clj index 5558087..ed193b8 100644 --- a/src/com/owoga/corpus/markov.clj +++ b/src/com/owoga/corpus/markov.clj @@ -1059,11 +1059,8 @@ markov-trie [eos eos eos] (fn [children] - (let [banned-ids (->> banned-words - (map database) - (into #{eos bos}))] - (remove - #(banned-ids (.key %)) children)))) + (remove + #(#{eos bos} (.key %)) children))) database (#(vector (rand-nth (phonetics/get-phones %)) %)) vector))