From: Enrico Tröger Date: Fri, 15 Jan 2010 05:15:48 +0000 (+0100) Subject: Only define adblock_prepare_urihider_js() if it is used X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6163a761f6891438221a53e8b214c7369800410;p=midori Only define adblock_prepare_urihider_js() if it is used --- diff --git a/extensions/adblock.c b/extensions/adblock.c index 6abeeb1e..f89c16e7 100644 --- a/extensions/adblock.c +++ b/extensions/adblock.c @@ -636,6 +636,7 @@ adblock_is_matched (const gchar* opts, return adblock_is_matched_by_pattern (req_uri, page_uri); } +#if HAVE_WEBKIT_RESOURCE_REQUEST static gchar* adblock_prepare_urihider_js (const gchar* uri) { @@ -667,7 +668,6 @@ adblock_prepare_urihider_js (const gchar* uri) return g_strdup_printf (js, uri); } -#if HAVE_WEBKIT_RESOURCE_REQUEST static void adblock_resource_request_starting_cb (WebKitWebView* web_view, WebKitWebFrame* web_frame,