nano-devel
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]