]> wimlib.net Git - wimlib/blobdiff - programs/imagex.c
Fixes to get rid of various compiler warnings
[wimlib] / programs / imagex.c
index 688b1e172dbdef2266f66d68dfe68bed785d1d03..e27f26470343389feecd811ea094a0ea4f82f613 100644 (file)
@@ -199,24 +199,6 @@ static void imagex_error_with_errno(const char *format, ...)
        va_end(va);
 }
 
-static const char *path_basename(const char *path)
-{
-       const char *p = path;
-       while (*p)
-               p++;
-       p--;
-
-       /* Trailing slashes. */
-       while ((p != path - 1) && *p == '/')
-               p--;
-
-       while ((p != path - 1) && *p != '/')
-               p--;
-
-       return p + 1;
-}
-
-
 static int verify_image_exists(int image)
 {
        if (image == WIM_NO_IMAGE) {