diff options
author | John Schmidt <john.schmidt.h@gmail.com> | 2014-04-03 00:29:23 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-29 09:24:34 -0300 |
commit | c57002a7c34a553f68eeb65fa6e5b1e3a9e3ad24 (patch) | |
tree | 3dff9663ff6ccb83674391503daa8ea20d46b362 /src/path.c | |
parent | 9a2c92e92c8bbeda6ab4a44a5d6e278669329b89 (diff) | |
download | rneovim-c57002a7c34a553f68eeb65fa6e5b1e3a9e3ad24.tar.gz rneovim-c57002a7c34a553f68eeb65fa6e5b1e3a9e3ad24.tar.bz2 rneovim-c57002a7c34a553f68eeb65fa6e5b1e3a9e3ad24.zip |
Remove `shorten_filenames` (dead code)
Diffstat (limited to 'src/path.c')
-rw-r--r-- | src/path.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/path.c b/src/path.c index d705f6081a..ccc673b1ab 100644 --- a/src/path.c +++ b/src/path.c @@ -1758,35 +1758,6 @@ char_u *shorten_fname(char_u *full_path, char_u *dir_name) return p; } -#if (defined(FEAT_DND) && defined(FEAT_GUI_GTK)) \ - || defined(FEAT_GUI_MSWIN) \ - || defined(FEAT_GUI_MAC) \ - || defined(PROTO) -/* - * Shorten all filenames in "fnames[count]" by current directory. - */ -void shorten_filenames(char_u **fnames, int count) -{ - int i; - char_u dirname[MAXPATHL]; - char_u *p; - - if (fnames == NULL || count < 1) - return; - os_dirname(dirname, sizeof(dirname)); - for (i = 0; i < count; ++i) { - if ((p = shorten_fname(fnames[i], dirname)) != NULL) { - /* shorten_fname() returns pointer in given "fnames[i]". If free - * "fnames[i]" first, "p" becomes invalid. So we need to copy - * "p" first then free fnames[i]. */ - p = vim_strsave(p); - vim_free(fnames[i]); - fnames[i] = p; - } - } -} -#endif - /* * Invoke expand_wildcards() for one pattern. * Expand items like "%:h" before the expansion. |