From 644b249c1c977486b1438aeea2fee3623d5a94cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= <rafael.carre@savoirfairelinux.com> Date: Tue, 5 Jul 2011 09:55:03 -0400 Subject: [PATCH] Remove unused variables and functions --- sflphone-client-gnome/src/actions.c | 4 +--- sflphone-client-gnome/src/contacts/conferencelist.c | 12 ------------ sflphone-client-gnome/src/mainwindow.c | 1 - 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/sflphone-client-gnome/src/actions.c b/sflphone-client-gnome/src/actions.c index a38bdaa792..e027a5fa6a 100644 --- a/sflphone-client-gnome/src/actions.c +++ b/sflphone-client-gnome/src/actions.c @@ -1369,7 +1369,7 @@ void sflphone_fill_conference_list (void) void sflphone_fill_history (void) { - const gchar **entries, **history_entries; + const gchar **entries; gchar *current_entry; callable_obj_t *history_call, *call; conference_obj_t *history_conf, *conf; @@ -1436,8 +1436,6 @@ void sflphone_fill_history (void) entries++; } - entries = history_entries; - // fill n = calllist_get_size(history); DEBUG("CALL SIZE: %d", n); diff --git a/sflphone-client-gnome/src/contacts/conferencelist.c b/sflphone-client-gnome/src/contacts/conferencelist.c index c7bf7a90e4..dedc922aeb 100644 --- a/sflphone-client-gnome/src/contacts/conferencelist.c +++ b/sflphone-client-gnome/src/contacts/conferencelist.c @@ -33,7 +33,6 @@ #include "logger.h" static gint is_confID_confstruct(gconstpointer, gconstpointer); -static gchar *generate_conf_id (void); static gint is_confID_confstruct (gconstpointer a, gconstpointer b) { @@ -46,17 +45,6 @@ static gint is_confID_confstruct (gconstpointer a, gconstpointer b) } } -static gchar *generate_conf_id (void) -{ - gchar *conf_id; - - conf_id = g_new0 (gchar, 30); - g_sprintf (conf_id, "%d", rand()); - - return conf_id; -} - - void conferencelist_init(calltab_t *tab) { if(tab == NULL) { diff --git a/sflphone-client-gnome/src/mainwindow.c b/sflphone-client-gnome/src/mainwindow.c index 3f44a9e8bc..ddac77cadf 100644 --- a/sflphone-client-gnome/src/mainwindow.c +++ b/sflphone-client-gnome/src/mainwindow.c @@ -57,7 +57,6 @@ static GtkWidget * dialpad = NULL; static GtkWidget * speaker_control = NULL; static GtkWidget * mic_control = NULL; static GtkWidget * statusBar = NULL; -static GtkWidget * filterEntry = NULL; static PidginScrollBook *embedded_error_notebook; static gchar *status_current_message = NULL; -- GitLab