From 5c578b1f4b9bb7b2c892b18daf1d43ef489d0ebb Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 22 Jul 2010 16:42:38 +0200 Subject: [PATCH] Remove call to "gl_update()" from various actions. It's now handled in src/main.c --- src/action_list_graphs.c | 2 -- src/action_list_hosts.c | 2 -- src/action_search.c | 2 -- src/action_search_json.c | 2 -- 4 files changed, 8 deletions(-) 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); -- 2.11.0