From 4a3ea41c853c35c3fa409137ad3a55f3d679b1b8 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, 2 insertions(+), 15 deletions(-) diff --git a/sflphone-client-gnome/src/actions.c b/sflphone-client-gnome/src/actions.c index e07387a767..885cd57d0d 100644 --- a/sflphone-client-gnome/src/actions.c +++ b/sflphone-client-gnome/src/actions.c @@ -1367,7 +1367,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; @@ -1428,7 +1428,7 @@ void sflphone_fill_history (void) entries++; } - // fill the treeview wtih calls + // fill the treeview with calls n = calllist_get_size(history); for(i = 0; i < n; i++) { element = calllist_get_nth(history, i); 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