diff options
author | portix <none@none> | 2013-02-14 18:44:44 +0100 |
---|---|---|
committer | portix <none@none> | 2013-02-14 18:44:44 +0100 |
commit | 83a2d7ac01dba24e03f990632e25b3346fa48439 (patch) | |
tree | d492f8fae30d8e87b0e0d00d6582172754e46d17 | |
parent | cbb671a3430353e962880bf91d66362cc85fc8b6 (diff) | |
download | dwb-83a2d7ac01dba24e03f990632e25b3346fa48439.zip |
Remove domain_is_tld
-rw-r--r-- | src/domain.c | 8 | ||||
-rw-r--r-- | src/domain.h | 1 | ||||
-rw-r--r-- | src/soup.c | 2 |
3 files changed, 1 insertions, 10 deletions
diff --git a/src/domain.c b/src/domain.c index 29f813b1..ac036f9b 100644 --- a/src/domain.c +++ b/src/domain.c @@ -139,14 +139,6 @@ count_char(const char *str, char ch) return count; } -gboolean -domain_is_tld(const char *host) -{ - g_return_val_if_fail(host != NULL, false); - - return g_hash_table_lookup(s_tld_table, host) != NULL; -} - const char * domain_get_tld(const char *host) { diff --git a/src/domain.h b/src/domain.h index 8ce54bea..8203db78 100644 --- a/src/domain.h +++ b/src/domain.h @@ -30,5 +30,4 @@ GSList * domain_get_cookie_domains(WebKitWebView *wv); gboolean domain_match(char **, const char *, const char *); const char * domain_get_base_for_host(const char *host); const char * domain_get_tld(const char *domain); -gboolean domain_is_tld(const char *domain); #endif @@ -287,7 +287,7 @@ dwb_soup_cookie_changed_cb(SoupCookieJar *jar, SoupCookie *old, SoupCookie *new, if (*base == '.') base++; - if (domain_is_tld(base)) + if (domain_get_tld(base) == NULL) { fprintf(stderr, "Site tried to set super-cookie @ TLD %s (base %s)\n", new->domain, base); return; |