misc/path_utils: remove mp_strip_ext()

It is no longer used.
This commit is contained in:
Guido Cella authored and Kacper Michajłow committed 2026-06-27 21:43:18 +02:00
1 parent df3b76b018
commit 9ffc0cd861
2 files changed
-9

No files matched your search

-6
View File
@@ -106,12 +106,6 @@ char *mp_splitext(const char *path, bstr *root)
return (char *)split + 1;
}
char *mp_strip_ext(void *talloc_ctx, const char *s)
{
bstr root;
return mp_splitext(s, &root) ? bstrto0(talloc_ctx, root) : talloc_strdup(talloc_ctx, s);
}
/* Return the file extension, excluding the '.'. If root is not NULL, set it to
* the part of the path without extension. So: path == root + "." + extension
* Return NULL if there is no file extension and don't set *root in this case.
-3
View File
@@ -36,9 +36,6 @@ char *mp_splitext(const char *path, bstr *root);
bstr bstr_strip_ext(bstr path);
bstr bstr_get_ext(bstr path);
// This is a shorthand to remove the extension
char *mp_strip_ext(void *talloc_ctx, const char *s);
/* Return struct bstr referencing directory part of path, or if that
* would be empty, ".".
*/