From d6911ffa67b69deecfbab30b72e4aebf592754d3 Mon Sep 17 00:00:00 2001 From: Robert Manea Date: Sat, 30 May 2009 14:14:08 +0200 Subject: removed get command in favour of print --- uzbl.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'uzbl.c') diff --git a/uzbl.c b/uzbl.c index db7d7e9..9041f35 100644 --- 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} }, @@ -669,12 +669,6 @@ set_var(WebKitWebView *page, GArray *argv) { g_strfreev(split); } -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; @@ -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; -- cgit v1.2.3