summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-06-27 09:10:54 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-06-27 09:10:54 -0700
commit9dc109581a299973777ea5082f646d7ac7d82f7c (patch)
tree2100f716dd3cc16bc84e88c430c69dd18341ae21
parent7264a34446de3b4760d00af7873ee3558fc9145b (diff)
downloadtxr-9dc109581a299973777ea5082f646d7ac7d82f7c.tar.gz
txr-9dc109581a299973777ea5082f646d7ac7d82f7c.tar.bz2
txr-9dc109581a299973777ea5082f646d7ac7d82f7c.zip
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.
-rw-r--r--filter.c2
1 files changed, 0 insertions, 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 {