aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/query_string_map.zig13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/query_string_map.zig b/src/query_string_map.zig
index 16a3c83c7..9fcea07a1 100644
--- a/src/query_string_map.zig
+++ b/src/query_string_map.zig
@@ -33,19 +33,6 @@ pub const URL = struct {
username: string = "",
port_was_automatically_set: bool = false,
- pub fn isDomainName(this: *const URL) bool {
- for (this.hostname) |c| {
- switch (c) {
- '0'...'9', '.', ':' => {},
- else => {
- return true;
- },
- }
- }
-
- return false;
- }
-
pub fn isLocalhost(this: *const URL) bool {
return this.hostname.len == 0 or strings.eqlComptime(this.hostname, "localhost") or strings.eqlComptime(this.hostname, "0.0.0.0");
}