From: Chris Allegretta Date: Thu, 3 Jan 2013 04:50:49 +0000 (+0000) Subject: 2013-01-02 Mike Frysinger X-Git-Tag: v2.3.2~12 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2a76b434fc68f9bc9675727432c0d976b2fa04ff;p=nano.git 2013-01-02 Mike Frysinger * src/files.c: (cwd_tab_completion): Remove unnecessary variables git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4558 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 0aa97fb4..db0a1d77 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2013-01-02 Mike Frysinger + * src/files.c: (cwd_tab_completion): Remove unnecessary variables + 2013-01-02 Eitan Adler * configure.ac: Remove unnecessary checks * src/nano.h, NEWS: Fix redundant wording diff --git a/src/files.c b/src/files.c index 55e7939d..840695eb 100644 --- a/src/files.c +++ b/src/files.c @@ -2613,9 +2613,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; @@ -2654,9 +2651,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) {