Code

Make templates honour SHELL_PATH and PERL_PATH
[git.git] / sha1_file.c
index c23cc5e6e19a2d8c9a92161b0a5d62a5ef8e920b..a08a9d08808bdb2f4a138d7e6f602b61fc093c1b 100644 (file)
@@ -35,13 +35,6 @@ static size_t sz_fmt(size_t s) { return s; }
 
 const unsigned char null_sha1[20];
 
-static inline int offset_1st_component(const char *path)
-{
-       if (has_dos_drive_prefix(path))
-               return 2 + (path[2] == '/');
-       return *path == '/';
-}
-
 int safe_create_leading_directories(char *path)
 {
        char *pos = path + offset_1st_component(path);