57cf389829eefde1805347ccb38be4810b322129
diff --git a/libsoup/soup-cookie-jar.c b/libsoup/soup-cookie-jar.c
index 87bd3f5..bf41476 100644
--- a/libsoup/soup-cookie-jar.c
+++ b/libsoup/soup-cookie-jar.c
@@ -204,14 +204,6 @@ soup_cookie_jar_get_cookies (SoupCookieJar *jar, SoupURI *uri,
 		return NULL;
 }
 
-static GSList *
-get_cookies_for_domain (SoupCookieJar *jar, const char *domain)
-{
-	SoupCookieJarPrivate *priv = SOUP_COOKIE_JAR_GET_PRIVATE (jar);
-
-	return g_hash_table_lookup (priv->domains, domain);
-}
-
 /**
  * soup_cookie_jar_add_cookie:
  * @jar: a #SoupCookieJar
@@ -234,7 +226,7 @@ soup_cookie_jar_add_cookie (SoupCookieJar *jar, SoupCookie *cookie)
 	g_return_if_fail (cookie != NULL);
 
 	priv = SOUP_COOKIE_JAR_GET_PRIVATE (jar);
-	old_cookies = get_cookies_for_domain (jar, cookie->domain);
+	old_cookies = g_hash_table_lookup (priv->domains, cookie->domain);
 	for (oc = old_cookies; oc; oc = oc->next) {
 		old_cookie = oc->data;
 		if (!strcmp (cookie->name, old_cookie->name)) {
