From: Peter Hofmann Date: Sun, 9 Nov 2014 11:10:19 +0000 (+0100) Subject: "-r" is useless without the adblock hook X-Git-Tag: v1.0.0~219 X-Git-Url: https://git.armaanb.net/?p=chorizo.git;a=commitdiff_plain;h=9cbe7f49106c6822aa2a01f6e37458626d0b696b "-r" is useless without the adblock hook --- diff --git a/README b/README index 362956e..8124c6e 100644 --- a/README +++ b/README @@ -191,9 +191,6 @@ following options: window specified by . The download manager is always a "popup". - -r - Print all navigation requests on STDERR. - -C Disables cooperative instances. diff --git a/browser.c b/browser.c index 3ed7b7b..2965e6f 100644 --- a/browser.c +++ b/browser.c @@ -78,7 +78,6 @@ static gchar *home_uri = "about:blank"; static GHashTable *keywords = NULL; static gboolean language_is_set = FALSE; static gchar *search_text = NULL; -static gboolean show_all_requests = FALSE; static gboolean tabbed_automagic = TRUE; static gchar *user_agent = NULL; @@ -235,8 +234,6 @@ client_new(const gchar *uri) if (uri != NULL) { f = ensure_uri_scheme(uri); - if (show_all_requests) - fprintf(stderr, "====> %s\n", uri); webkit_web_view_load_uri(WEBKIT_WEB_VIEW(c->web_view), f); g_free(f); } @@ -629,8 +626,6 @@ key_location(GtkWidget *widget, GdkEvent *event, gpointer data) else if (!keywords_try_search(WEBKIT_WEB_VIEW(c->web_view), t)) { f = ensure_uri_scheme(t); - if (show_all_requests) - fprintf(stderr, "====> %s\n", f); webkit_web_view_load_uri(WEBKIT_WEB_VIEW(c->web_view), f); g_free(f); } @@ -666,15 +661,11 @@ key_web_view(GtkWidget *widget, GdkEvent *event, gpointer data) return TRUE; case GDK_KEY_w: /* home (left hand) */ f = ensure_uri_scheme(home_uri); - if (show_all_requests) - fprintf(stderr, "====> %s\n", f); webkit_web_view_load_uri(WEBKIT_WEB_VIEW(c->web_view), f); g_free(f); return TRUE; case GDK_KEY_e: /* new tab (left hand) */ f = ensure_uri_scheme(home_uri); - if (show_all_requests) - fprintf(stderr, "====> %s\n", f); client_new(f); g_free(f); return TRUE; @@ -811,8 +802,6 @@ keywords_try_search(WebKitWebView *web_view, const gchar *t) if (val != NULL) { uri = g_strdup_printf((gchar *)val, tokens[1]); - if (show_all_requests) - fprintf(stderr, "====> %s\n", uri); webkit_web_view_load_uri(web_view, uri); g_free(uri); ret = TRUE; @@ -922,7 +911,7 @@ main(int argc, char **argv) grab_environment_configuration(); - while ((opt = getopt(argc, argv, "e:rCT")) != -1) + while ((opt = getopt(argc, argv, "e:CT")) != -1) { switch (opt) { @@ -930,9 +919,6 @@ main(int argc, char **argv) embed = atol(optarg); tabbed_automagic = FALSE; break; - case 'r': - show_all_requests = TRUE; - break; case 'C': cooperative_instances = FALSE; break;