]> git.armaanb.net Git - chorizo.git/commitdiff
"-r" is useless without the adblock hook
authorPeter Hofmann <scm@uninformativ.de>
Sun, 9 Nov 2014 11:10:19 +0000 (12:10 +0100)
committerPeter Hofmann <scm@uninformativ.de>
Sun, 9 Nov 2014 11:10:19 +0000 (12:10 +0100)
README
browser.c

diff --git a/README b/README
index 362956e8111f6c5772fc1e1a210de7da93765551..8124c6e233482b30c00ce0d70dde23d0b528f6e6 100644 (file)
--- a/README
+++ b/README
@@ -191,9 +191,6 @@ following options:
         window specified by <wid>. The download manager is always a
         "popup".
 
-    -r
-        Print all navigation requests on STDERR.
-
     -C
         Disables cooperative instances.
 
index 3ed7b7b0ff4792ea1bf89f7f32d56c5142653ad0..2965e6f149e058692ccbafbb4b1635d844b19883 100644 (file)
--- 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;