summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-10-31 00:50:32 +0000
committerVincent Sanders <vince@kyllikki.org>2014-10-31 00:50:32 +0000
commit02ff3920ce22f4a4120cab8cee3a72a244604732 (patch)
tree0e1b8b8dea9baf0ab5313a49a19db6e5d6867c26 /utils
parentce3d99191842ded7687dc23c3ccb5f5ccc843558 (diff)
downloadnetsurf-02ff3920ce22f4a4120cab8cee3a72a244604732.tar.gz
netsurf-02ff3920ce22f4a4120cab8cee3a72a244604732.tar.bz2
remove unused url_init function
Diffstat (limited to 'utils')
-rw-r--r--utils/url.c29
-rw-r--r--utils/url.h8
2 files changed, 0 insertions, 37 deletions
diff --git a/utils/url.c b/utils/url.c
index 92e956b55..b32a7346f 100644
--- a/utils/url.c
+++ b/utils/url.c
@@ -32,35 +32,6 @@
#include "utils/url.h"
-regex_t url_re, url_up_re;
-
-/* exported interface documented in utils/url.h */
-nserror url_init(void)
-{
- nserror ret;
-
- /* regex from RFC 2396 */
- ret = regcomp_wrapper(&url_re, "^[[:space:]]*"
-#define URL_RE_SCHEME 2
- "(([a-zA-Z][-a-zA-Z0-9+.]*):)?"
-#define URL_RE_AUTHORITY 4
- "(//([^/?#[:space:]]*))?"
-#define URL_RE_PATH 5
- "([^?#[:space:]]*)"
-#define URL_RE_QUERY 7
- "(\\?([^#[:space:]]*))?"
-#define URL_RE_FRAGMENT 9
- "(#([^[:space:]]*))?"
- "[[:space:]]*$", REG_EXTENDED);
- if (ret != NSERROR_OK) {
- return ret;
- }
-
- return regcomp_wrapper(&url_up_re,
- "/([^/]?|[.][^./]|[^./][.]|[^./][^./]|[^/][^/][^/]+)"
- "/[.][.](/|$)",
- REG_EXTENDED);
-}
/* exported interface documented in utils/url.h */
bool url_host_is_ip_address(const char *host)
diff --git a/utils/url.h b/utils/url.h
index d05ac0580..627bb5cb8 100644
--- a/utils/url.h
+++ b/utils/url.h
@@ -35,14 +35,6 @@
/**
- * Initialise URL routines.
- *
- * Compiles regular expressions required by the url_ functions.
- */
-nserror url_init(void);
-
-
-/**
* Check whether a host string is an IP address.
*
* This call detects IPv4 addresses (all of dotted-quad or subsets,