tremoved unused variable nitem. - dmenu - Dmenu fork with xft fonts.
(HTM) git clone git://r-36.net/dmenu
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 015f51ac46adac6befd81754a8f01676eaf1f6a4
(DIR) parent 542c58d8d00e26f23a5e0f09a9d1e68a7259db5e
(HTM) Author: sander@localhost <unknown>
Date: Sun, 23 Mar 2008 12:09:29 +0100
removed unused variable nitem.
Diffstat:
dmenu.c | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
---
(DIR) diff --git a/dmenu.c b/dmenu.c
t@@ -76,7 +76,6 @@ int ret = 0;
unsigned int cmdw = 0;
unsigned int mw, mh;
unsigned int promptw = 0;
-unsigned int nitem = 0;
unsigned int numlockmask = 0;
Bool running = True;
Display *dpy;
t@@ -524,20 +523,13 @@ match(char *pattern) {
return;
plen = strlen(pattern);
item = lexact = lprefix = lsubstr = itemend = exactend = prefixend = substrend = NULL;
- nitem = 0;
for(i = allitems; i; i = i->next)
- if(!fstrncmp(pattern, i->text, plen + 1)) {
+ if(!fstrncmp(pattern, i->text, plen + 1))
appenditem(i, &lexact, &exactend);
- nitem++;
- }
- else if(!fstrncmp(pattern, i->text, plen)) {
+ else if(!fstrncmp(pattern, i->text, plen))
appenditem(i, &lprefix, &prefixend);
- nitem++;
- }
- else if(fstrstr(i->text, pattern)) {
+ else if(fstrstr(i->text, pattern))
appenditem(i, &lsubstr, &substrend);
- nitem++;
- }
if(lexact) {
item = lexact;
itemend = exactend;