diff --git a/cache.h b/cache.h index 2c4d9b3776..0d8eddac77 100644 --- a/cache.h +++ b/cache.h @@ -527,8 +527,6 @@ static inline int is_absolute_path(const char *path) const char *make_absolute_path(const char *path); const char *make_nonrelative_path(const char *path); const char *make_relative_path(const char *abs, const char *base); -/* Convert slashes in place. On Windows to backslashes. */ -char *make_native_separator(char *path); int normalize_absolute_path(char *buf, const char *path); int longest_ancestor_length(const char *path, const char *prefix_list); diff --git a/path.c b/path.c index 96503d96cd..504eae061f 100644 --- a/path.c +++ b/path.c @@ -439,16 +439,3 @@ int longest_ancestor_length(const char *path, const char *prefix_list) return max_len; } - -char *make_native_separator(char* path) { -#ifdef __MINGW32__ - char* c; - for (c = path; *c; c++) { - if (*c == '/') - *c = '\\'; - } - return path; -#else - return path; -#endif -}