removed get command in favour of print
authorRobert Manea <gotmor@gmail.com>
Sat, 30 May 2009 12:14:08 +0000 (14:14 +0200)
committerRobert Manea <gotmor@gmail.com>
Sat, 30 May 2009 12:14:08 +0000 (14:14 +0200)
uzbl.c
uzbl.h

diff --git a/uzbl.c b/uzbl.c
index db7d7e9..9041f35 100644 (file)
--- a/uzbl.c
+++ b/uzbl.c
@@ -610,7 +610,7 @@ static struct {char *name; Command command[2];} cmdlist[] =
     { "dehilight",          {dehilight, 0}                 },
     { "toggle_insert_mode", {toggle_insert_mode, 0}        },
     { "set",                {set_var, NOSPLIT}             },
-    { "get",                {get_var, NOSPLIT}             },
+    //{ "get",                {get_var, NOSPLIT}             },
     { "bind",               {act_bind, NOSPLIT}            },
     { "dump_config",        {act_dump_config, 0}           },
     { "keycmd",             {keycmd, NOSPLIT}              },
@@ -670,12 +670,6 @@ set_var(WebKitWebView *page, GArray *argv) {
 }
 
 static void
-get_var(WebKitWebView *page, GArray *argv) {
-    (void) page;
-    get_var_value(argv_idx(argv, 0));
-}
-
-static void
 print(WebKitWebView *page, GArray *argv) {
     (void) page;
     gchar* buf;
@@ -1274,19 +1268,6 @@ parse_command(const char *cmd, const char *param) {
         g_printerr ("command \"%s\" not understood. ignoring.\n", cmd);
 }
 
-static gboolean
-get_var_value(const gchar *name) {
-    uzbl_cmdprop *c;
-
-    if( (c = g_hash_table_lookup(uzbl.comm.proto_var, name)) ) {
-        if(c->type == TYPE_STR)
-            printf("VAR: %s VALUE: (%s)\n", name, (char *)*c->ptr);
-        else if(c->type == TYPE_INT)
-            printf("VAR: %s VALUE: %d\n", name, (int)*c->ptr);
-    }
-    return TRUE;
-}
-
 static void
 set_proxy_url() {
     SoupURI *suri;
diff --git a/uzbl.h b/uzbl.h
index 121d6b5..846dad6 100644 (file)
--- a/uzbl.h
+++ b/uzbl.h
@@ -242,9 +242,6 @@ setup_signal(int signe, sigfunc *shandler);
 static gboolean
 set_var_value(gchar *name, gchar *val);
 
-static gboolean
-get_var_value(const gchar *name);
-
 static void
 print(WebKitWebView *page, GArray *argv);
 
@@ -428,9 +425,6 @@ static void
 set_var(WebKitWebView *page, GArray *argv);
 
 static void
-get_var(WebKitWebView *page, GArray *argv);
-
-static void
 act_bind(WebKitWebView *page, GArray *argv);
 
 static void