From e9cb4135df043c711bb18fb18fbe4ea551dcb645 Mon Sep 17 00:00:00 2001 From: Leandro Augusto Fogolin Pereira Date: Fri, 23 Jan 2009 13:22:54 -0200 Subject: Add Network module; minor cleanups --- hardinfo2/shell.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'hardinfo2/shell.c') diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c index 8ae2fd3b..90086103 100644 --- a/hardinfo2/shell.c +++ b/hardinfo2/shell.c @@ -720,9 +720,6 @@ info_tree_compare_val_func(GtkTreeModel * model, static void set_view_type(ShellViewType viewtype) { - if (viewtype == shell->view_type) - return; - if (viewtype < SHELL_VIEW_NORMAL || viewtype >= SHELL_VIEW_N_VIEWS) viewtype = SHELL_VIEW_NORMAL; @@ -745,7 +742,6 @@ static void set_view_type(ShellViewType viewtype) /* turn off the save graphic action */ shell_action_set_enabled("SaveGraphAction", FALSE); - switch (viewtype) { default: case SHELL_VIEW_NORMAL: -- cgit v1.2.3