From 98b6d02df61ce2917b001c4647d8c6b623b610e7 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 31 Oct 2014 14:31:06 +0000 Subject: Move host_is_ip_address into urldb, as that's the only thing that cares. --- utils/url.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'utils/url.h') diff --git a/utils/url.h b/utils/url.h index 627bb5cb8..d6c5b917c 100644 --- a/utils/url.h +++ b/utils/url.h @@ -34,19 +34,6 @@ #define FILE_SCHEME_PREFIX_LEN 8 -/** - * Check whether a host string is an IP address. - * - * This call detects IPv4 addresses (all of dotted-quad or subsets, - * decimal or hexadecimal notations) and IPv6 addresses (including - * those containing embedded IPv4 addresses.) - * - * \param host a hostname terminated by '\0' - * \return true if the hostname is an IP address, false otherwise - */ -bool url_host_is_ip_address(const char *host); - - /** * Escape a string suitable for inclusion in an URL. * -- cgit v1.2.3