From 9dc109581a299973777ea5082f646d7ac7d82f7c Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 27 Jun 2021 09:10:54 -0700 Subject: filter: remove useless statement. * filter.c (trie_filter_string): There is no need to convert a character to string for passing it as a second argument to string_extend; it takes characters. Also this had beem coded in a silly way: if chrp is true that implies !stringp. --- filter.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/filter.c b/filter.c index 650400e6..2993f82d 100644 --- a/filter.c +++ b/filter.c @@ -289,8 +289,6 @@ static val trie_filter_string(val filter, val str) } if (match) { - if (!stringp(subst) && chrp(subst)) - subst = tostringp(subst); string_extend(out, subst); i = plus(match, one); } else { -- cgit v1.2.3