summaryrefslogtreecommitdiff
path: root/Src
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-09-05 00:18:11 +0000
committerClint Adams <clint@users.sourceforge.net>2008-09-05 00:18:11 +0000
commit29680850a0f13c759e0530f836e3099ebfeab18c (patch)
treeeaa75d72f084bd66055ca5865d4bbb4340f9e550 /Src
parentbd915064c3d67f0c069adc2d079a70126e325fac (diff)
downloadzsh-29680850a0f13c759e0530f836e3099ebfeab18c.tar.gz
zsh-29680850a0f13c759e0530f836e3099ebfeab18c.zip
25612: remove dead code.
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/compmatch.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c
index dfb812760..9bef1cfeb 100644
--- a/Src/Zle/compmatch.c
+++ b/Src/Zle/compmatch.c
@@ -120,7 +120,7 @@ add_bmatchers(Cmatcher m)
mod_export void
update_bmatchers(void)
{
- Cmlist p = bmatchers, q = NULL, ms;
+ Cmlist p = bmatchers, ms;
Cmatcher mp;
int t;
@@ -132,10 +132,7 @@ update_bmatchers(void)
p = p->next;
if (!t) {
- if (q)
- q->next = p;
- else
- bmatchers = p;
+ bmatchers = p;
}
}
}