summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-08-01 17:59:57 +0200
committerBram Moolenaar <Bram@vim.org>2010-08-01 17:59:57 +0200
commit1a509df322436e922c140b579293fb94e7e2df9a (patch)
tree3dfb0a3222d316e7808001ab9740365bf376d98c /src/misc1.c
parentf4274feeef2e1c157457e3babb549ece5d4907f6 (diff)
downloadvim-git-1a509df322436e922c140b579293fb94e7e2df9a.tar.gz
Remove unused variable and STRLEN(). (Dominique Pelle)
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 7ee12e3f9..11c2b1b5a 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -2274,7 +2274,7 @@ del_bytes(count, fixpos_arg, use_delcombine)
* existing line. Otherwise a new line has to be allocated
* Can't do this when using Netbeans, because we would need to invoke
* netbeans_removed(), which deallocates the line. Let ml_replace() take
- * care of notifiying Netbeans.
+ * care of notifying Netbeans.
*/
#ifdef FEAT_NETBEANS_INTG
if (netbeans_active())
@@ -5142,7 +5142,7 @@ cin_isdefault(s)
}
/*
- * Recognize a "public/private/proctected" scope declaration label.
+ * Recognize a "public/private/protected" scope declaration label.
*/
int
cin_isscopedecl(s)
@@ -6034,7 +6034,7 @@ get_c_indent()
int ind_open_imag = 0;
/*
- * spaces from the prevailing indent for a line that is not precededof by
+ * spaces from the prevailing indent for a line that is not preceded by
* an opening brace.
*/
int ind_no_brace = 0;
@@ -9301,7 +9301,7 @@ is_unique(maybe_unique, gap, i)
}
/*
- * Split the 'path' option to a an array of strings as garray_T. Relative
+ * Split the 'path' option into an array of strings in garray_T. Relative
* paths are expanded to their equivalent fullpath. This includes the "."
* (relative to current buffer directory) and empty path (relative to current
* directory) notations.
@@ -9412,7 +9412,6 @@ uniquefy_paths(gap, pattern)
char_u *pat;
char_u *file_pattern;
char_u *curdir = NULL;
- int len_curdir = 0;
regmatch_T regmatch;
garray_T path_ga;
@@ -9445,7 +9444,6 @@ uniquefy_paths(gap, pattern)
if ((curdir = alloc((int)(MAXPATHL))) == NULL)
return;
mch_dirname(curdir, MAXPATHL);
- len_curdir = (int)STRLEN(curdir);
expand_path_option(curdir, &path_ga);