[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [PATCH 1/3] delete unused dirnamelen variable
From: |
Mike Frysinger |
Subject: |
[Nano-devel] [PATCH 1/3] delete unused dirnamelen variable |
Date: |
Sun, 6 Nov 2011 12:51:52 -0500 |
This is only ever set. Nothing actually uses it.
Signed-off-by: Mike Frysinger <address@hidden>
---
src/files.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/src/files.c b/src/files.c
index 430caf1..ba33a38 100644
--- a/src/files.c
+++ b/src/files.c
@@ -2402,9 +2402,6 @@ char **cwd_tab_completion(const char *buf, bool
allow_files, size_t
*num_matches, size_t buf_len)
{
char *dirname = mallocstrcpy(NULL, buf), *filename;
-#ifndef DISABLE_OPERATINGDIR
- size_t dirnamelen;
-#endif
size_t filenamelen;
char **matches = NULL;
DIR *dir;
@@ -2443,9 +2440,6 @@ char **cwd_tab_completion(const char *buf, bool
allow_files, size_t
return NULL;
}
-#ifndef DISABLE_OPERATINGDIR
- dirnamelen = strlen(dirname);
-#endif
filenamelen = strlen(filename);
while ((nextdir = readdir(dir)) != NULL) {
--
1.7.6.1
- [Nano-devel] [PATCH 1/3] delete unused dirnamelen variable,
Mike Frysinger <=
- [Nano-devel] [PATCH 3/3] fix uninitialized search func warning, Mike Frysinger, 2011/11/06
- [Nano-devel] [PATCH 2/3] silence unused shush warning, Mike Frysinger, 2011/11/06
- Re: [Nano-devel] [PATCH 2/3] silence unused shush warning, Eitan Adler, 2011/11/06
- Re: [Nano-devel] [PATCH 2/3] silence unused shush warning, Mike Frysinger, 2011/11/06
- Re: [Nano-devel] [PATCH 2/3] silence unused shush warning, Eitan Adler, 2011/11/06
- Re: [Nano-devel] [PATCH 2/3] silence unused shush warning, Mike Frysinger, 2011/11/06
- Re: [Nano-devel] [PATCH 2/3] silence unused shush warning, Eitan Adler, 2011/11/06
- Re: [Nano-devel] [PATCH 2/3] silence unused shush warning, Kamil Dudka, 2011/11/07
Re: [Nano-devel] [PATCH 1/3] delete unused dirnamelen variable, Eitan Adler, 2011/11/06