From: Florian Forster Date: Thu, 22 Jul 2010 14:42:38 +0000 (+0200) Subject: Remove call to "gl_update()" from various actions. X-Git-Tag: v4.0.0~74 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5c578b1f4b9bb7b2c892b18daf1d43ef489d0ebb;hp=06dbb6105d7df41e8a4d9a7f5898bcfa98b79fa8;p=collection4.git Remove call to "gl_update()" from various actions. It's now handled in src/main.c --- diff --git a/src/action_list_graphs.c b/src/action_list_graphs.c index b5a01d5..1984cd5 100644 --- a/src/action_list_graphs.c +++ b/src/action_list_graphs.c @@ -85,8 +85,6 @@ static int print_all_graphs (__attribute__((unused)) void *user_data) /* {{{ */ int action_list_graphs (void) /* {{{ */ { - gl_update (); - page_callbacks_t pg_callbacks = PAGE_CALLBACKS_INIT; char title[512]; diff --git a/src/action_list_hosts.c b/src/action_list_hosts.c index d1cae71..0e7b963 100644 --- a/src/action_list_hosts.c +++ b/src/action_list_hosts.c @@ -73,8 +73,6 @@ static int print_all_hosts (__attribute__((unused)) void *user_data) /* {{{ */ int action_list_hosts (void) /* {{{ */ { - gl_update (); - page_callbacks_t pg_callbacks = PAGE_CALLBACKS_INIT; char title[512]; diff --git a/src/action_search.c b/src/action_search.c index c2dd378..27b6a0e 100644 --- a/src/action_search.c +++ b/src/action_search.c @@ -265,8 +265,6 @@ int action_search (void) /* {{{ */ page_data_t pg_data; int status; - gl_update (); - pg_data.search_term = strtolower_copy (param ("q")); if ((pg_data.search_term != NULL) && (pg_data.search_term[0] == 0)) { diff --git a/src/action_search_json.c b/src/action_search_json.c index 6fcfa67..834e07e 100644 --- a/src/action_search_json.c +++ b/src/action_search_json.c @@ -164,8 +164,6 @@ int action_search_json (void) /* {{{ */ char *search; int status; - gl_update (); - search = strtolower_copy (param ("q")); status = list_graphs_json (search);