Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
neovim
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Efraim Flashner
neovim
Commits
c57002a7
Commit
c57002a7
authored
Apr 03, 2014
by
John Schmidt
Committed by
Thiago de Arruda
Apr 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove `shorten_filenames` (dead code)
parent
9a2c92e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
30 deletions
+0
-30
src/path.c
src/path.c
+0
-29
src/path.h
src/path.h
+0
-1
No files found.
src/path.c
View file @
c57002a7
...
...
@@ -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.
...
...
src/path.h
View file @
c57002a7
...
...
@@ -85,7 +85,6 @@ int pathcmp(const char *p, const char *q, int maxlen);
int
mch_expandpath
(
garray_T
*
gap
,
char_u
*
path
,
int
flags
);
char_u
*
shorten_fname1
(
char_u
*
full_path
);
char_u
*
shorten_fname
(
char_u
*
full_path
,
char_u
*
dir_name
);
void
shorten_filenames
(
char_u
**
fnames
,
int
count
);
int
expand_wildcards_eval
(
char_u
**
pat
,
int
*
num_file
,
char_u
***
file
,
int
flags
);
int
expand_wildcards
(
int
num_pat
,
char_u
**
pat
,
int
*
num_file
,
char_u
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment