summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-10-26 10:07:12 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2014-10-26 10:18:39 +0000
commitd732b0c76950bfdeaa9777bfac0c73517c25a9e0 (patch)
treed9df01356dd62961918498f12f54b675ca8076f9
parentf7781a877887ca20867fe48b04dbd33e947ab3d0 (diff)
downloadnetsurf-d732b0c76950bfdeaa9777bfac0c73517c25a9e0.tar.gz
netsurf-d732b0c76950bfdeaa9777bfac0c73517c25a9e0.tar.bz2
Remove unused url_scheme function.
-rw-r--r--utils/url.c23
-rw-r--r--utils/url.h12
2 files changed, 0 insertions, 35 deletions
diff --git a/utils/url.c b/utils/url.c
index 949478efb..c7935b279 100644
--- a/utils/url.c
+++ b/utils/url.c
@@ -288,29 +288,6 @@ static void url_destroy_components(const struct url_components *components)
/* exported interface documented in utils/url.h */
-nserror url_scheme(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.scheme) {
- status = NSERROR_NOT_FOUND;
- } else {
- *result = strdup(components.scheme);
- if (!(*result))
- status = NSERROR_NOMEM;
- }
- }
- url_destroy_components(&components);
- return status;
-}
-
-
-/* exported interface documented in utils/url.h */
nserror url_path(const char *url, char **result)
{
nserror status;
diff --git a/utils/url.h b/utils/url.h
index aac4e57e4..d152cc1dd 100644
--- a/utils/url.h
+++ b/utils/url.h
@@ -66,18 +66,6 @@ bool url_host_is_ip_address(const char *host);
/**
- * Return the scheme name from an URL.
- *
- * See RFC 3986, 3.1 for reference.
- *
- * \param url an absolute URL
- * \param result pointer to pointer to buffer to hold scheme name
- * \return NSERROR_OK on success
- */
-nserror url_scheme(const char *url, char **result);
-
-
-/**
* Attempt to find a nice filename for a URL.
*
* \param url an absolute URL