summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'match.c')
-rw-r--r--match.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/match.c b/match.c
index 67d917ea..38e23b2c 100644
--- a/match.c
+++ b/match.c
@@ -1392,8 +1392,7 @@ static val subst_vars(val spec, val bindings, val filter)
if (sym == var_s) {
val expr = second(elem);
- val pat = third(elem);
- val modifiers = fourth(elem);
+ val modifiers = third(elem);
val str = txeval(spec, expr, bindings);
/* If the object is a list, we let format_field deal with the
@@ -1402,9 +1401,6 @@ static val subst_vars(val spec, val bindings, val filter)
if (!stringp(str) && !listp(str))
str = tostringp(str);
- if (pat)
- spec = cons(pat, rest(spec));
-
if (modifiers) {
spec = cons(format_field(str, modifiers, filter,
curry_123_2(func_n3(txeval), spec, bindings)),