]> spindle.queued.net Git - midori/commitdiff
Only define adblock_prepare_urihider_js() if it is used
authorEnrico Tröger <enrico.troeger@uvena.de>
Fri, 15 Jan 2010 05:15:48 +0000 (06:15 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 15 Jan 2010 06:07:00 +0000 (07:07 +0100)
extensions/adblock.c

index 6abeeb1e12ea71179444dffb77c6a08bfea0c8fb..f89c16e7ba37c4f236d999dd515c437f9e965522 100644 (file)
@@ -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,