mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
Enable -Wconversion: Passing-by: Remove dead code (MACOS_CONVERT).
MacOS (pre Mac OS X) is not supported anymore.
This commit is contained in:

committed by
Justin M. Keyes

parent
7a7c933b86
commit
690e43b461
@@ -578,16 +578,6 @@ unix_expandpath (
|
||||
if (*path_end != NUL)
|
||||
backslash_halve(buf + len + 1);
|
||||
if (os_file_exists(buf)) { /* add existing file */
|
||||
#ifdef MACOS_CONVERT
|
||||
size_t precomp_len = STRLEN(buf)+1;
|
||||
char_u *precomp_buf =
|
||||
mac_precompose_path(buf, precomp_len, &precomp_len);
|
||||
|
||||
if (precomp_buf) {
|
||||
memmove(buf, precomp_buf, precomp_len);
|
||||
free(precomp_buf);
|
||||
}
|
||||
#endif
|
||||
addfile(gap, buf, flags);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user