X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=sha1_file.c;h=a08a9d08808bdb2f4a138d7e6f602b61fc093c1b;hb=a347b17f15dd5358ced8d447af144a46b224982d;hp=c23cc5e6e19a2d8c9a92161b0a5d62a5ef8e920b;hpb=57c118c268a01b00954916e344f2eb082eafaaaf;p=git.git diff --git a/sha1_file.c b/sha1_file.c index c23cc5e6e..a08a9d088 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -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);