Remove unused url_path function.

This commit is contained in:
Michael Drake 2014-10-26 10:21:27 +00:00
parent b16038cb1e
commit 1ccfcfe953
2 changed files with 0 additions and 33 deletions

View File

@ -287,29 +287,6 @@ static void url_destroy_components(const struct url_components *components)
}
/* exported interface documented in utils/url.h */
nserror url_path(const char *url, char **result)
{
nserror status;
struct url_components components;
assert(url);
status = url_get_components(url, &components);
if (status == NSERROR_OK) {
if (!components.path) {
status = NSERROR_NOT_FOUND;
} else {
*result = strdup(components.path);
if (!(*result))
status = NSERROR_NOMEM;
}
}
url_destroy_components(&components);
return status;
}
/* exported interface documented in utils/url.h */
nserror url_nice(const char *url, char **result,
bool remove_extensions)

View File

@ -95,14 +95,4 @@ nserror url_escape(const char *unescaped, size_t toskip, bool sptoplus, const ch
*/
nserror url_unescape(const char *str, char **result);
/**
* Extract path segment from an URL
*
* \param url an absolute URL
* \param result pointer to pointer to buffer to hold result
* \return NSERROR_OK on success
*/
nserror url_path(const char *url, char **result);
#endif