summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorportix <none@none>2013-02-14 18:44:44 +0100
committerportix <none@none>2013-02-14 18:44:44 +0100
commit83a2d7ac01dba24e03f990632e25b3346fa48439 (patch)
treed492f8fae30d8e87b0e0d00d6582172754e46d17
parentcbb671a3430353e962880bf91d66362cc85fc8b6 (diff)
downloaddwb-83a2d7ac01dba24e03f990632e25b3346fa48439.zip
Remove domain_is_tld
-rw-r--r--src/domain.c8
-rw-r--r--src/domain.h1
-rw-r--r--src/soup.c2
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
diff --git a/src/soup.c b/src/soup.c
index 4c0eb007..0f75ba9a 100644
--- a/src/soup.c
+++ b/src/soup.c
@@ -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;