Commit 1d674918 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #7178: removed unused functions in calllist

parent 8762e136
...@@ -1084,7 +1084,7 @@ void sflphone_fill_history(void) ...@@ -1084,7 +1084,7 @@ void sflphone_fill_history(void)
entries = entries_orig = dbus_get_history(); entries = entries_orig = dbus_get_history();
while (*entries) { while (entries && *entries) {
gchar *current_entry = *entries; gchar *current_entry = *entries;
// Parsed a conference // Parsed a conference
......
...@@ -113,28 +113,6 @@ calllist_reset(calltab_t* tab) ...@@ -113,28 +113,6 @@ calllist_reset(calltab_t* tab)
tab->callQueue = g_queue_new(); tab->callQueue = g_queue_new();
} }
void calllist_add_history_call(callable_obj_t *obj)
{
if (eel_gconf_get_integer(HISTORY_ENABLED)) {
QueueElement *element = g_new0(QueueElement, 1);
element->type = HIST_CALL;
element->elem.call = obj;
g_queue_push_tail(history_tab->callQueue, (gpointer) element);
calltree_add_history_entry(obj, NULL);
}
}
void calllist_add_history_conference(conference_obj_t *obj)
{
if (eel_gconf_get_integer(HISTORY_ENABLED)) {
QueueElement *element = g_new0(QueueElement, 1);
element->type = HIST_CONFERENCE;
element->elem.conf = obj;
g_queue_push_tail(history_tab->callQueue, (gpointer) element);
calltree_add_conference_to_history(obj);
}
}
void void
calllist_add_call(calltab_t* tab, callable_obj_t * c) calllist_add_call(calltab_t* tab, callable_obj_t * c)
{ {
......
...@@ -69,10 +69,6 @@ typedef struct { ...@@ -69,10 +69,6 @@ typedef struct {
void void
calllist_add_contact (gchar *, gchar *, contact_type_t, GdkPixbuf *); calllist_add_contact (gchar *, gchar *, contact_type_t, GdkPixbuf *);
void calllist_add_history_call (callable_obj_t *obj);
void calllist_add_history_conference (conference_obj_t *obj);
/** This function empty and free the call list. */ /** This function empty and free the call list. */
void void
calllist_clean (calltab_t* tab); calllist_clean (calltab_t* tab);
......
...@@ -177,8 +177,8 @@ call_selected_cb(GtkTreeSelection *sel, void* data UNUSED) ...@@ -177,8 +177,8 @@ call_selected_cb(GtkTreeSelection *sel, void* data UNUSED)
/* A row is activated when it is double clicked */ /* A row is activated when it is double clicked */
void void
row_activated(GtkTreeView *tree_view UNUSED, row_activated(GtkTreeView *tree_view UNUSED,
GtkTreePath *path UNUSED, GtkTreePath *path UNUSED,
GtkTreeViewColumn *column UNUSED, GtkTreeViewColumn *column UNUSED,
void * data UNUSED) void * data UNUSED)
{ {
...@@ -445,7 +445,6 @@ calltree_create(calltab_t* tab, int searchbar_type) ...@@ -445,7 +445,6 @@ calltree_create(calltab_t* tab, int searchbar_type)
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(calltree_sw), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(calltree_sw), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(calltree_sw), GTK_SHADOW_IN); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(calltree_sw), GTK_SHADOW_IN);
tab->store = gtk_tree_store_new(4, tab->store = gtk_tree_store_new(4,
GDK_TYPE_PIXBUF, /* Icon */ GDK_TYPE_PIXBUF, /* Icon */
G_TYPE_STRING, /* Description */ G_TYPE_STRING, /* Description */
...@@ -959,8 +958,6 @@ void calltree_add_conference_to_current_calls(conference_obj_t* conf) ...@@ -959,8 +958,6 @@ void calltree_add_conference_to_current_calls(conference_obj_t* conf)
DEBUG("Calltree: Add conference %s", conf->_confID); DEBUG("Calltree: Add conference %s", conf->_confID);
gchar *description = g_markup_printf_escaped("<b>%s</b>", "");
GtkTreeIter iter; GtkTreeIter iter;
gtk_tree_store_append(current_calls_tab->store, &iter, NULL); gtk_tree_store_append(current_calls_tab->store, &iter, NULL);
...@@ -1063,12 +1060,14 @@ void calltree_add_conference_to_current_calls(conference_obj_t* conf) ...@@ -1063,12 +1060,14 @@ void calltree_add_conference_to_current_calls(conference_obj_t* conf)
DEBUG("Calltree: Add conference to tree store"); DEBUG("Calltree: Add conference to tree store");
gchar *description = g_markup_printf_escaped("<b>%s</b>", "");
gtk_tree_store_set(current_calls_tab->store, &iter, gtk_tree_store_set(current_calls_tab->store, &iter,
COLUMN_ACCOUNT_PIXBUF, pixbuf, COLUMN_ACCOUNT_PIXBUF, pixbuf,
COLUMN_ACCOUNT_DESC, description, COLUMN_ACCOUNT_DESC, description,
COLUMN_ACCOUNT_SECURITY_PIXBUF, pixbuf_security, COLUMN_ACCOUNT_SECURITY_PIXBUF, pixbuf_security,
COLUMN_ACCOUNT_PTR, conf, COLUMN_ACCOUNT_PTR, conf,
-1); -1);
g_free(description);
if (pixbuf) if (pixbuf)
g_object_unref(pixbuf); g_object_unref(pixbuf);
...@@ -1076,7 +1075,6 @@ void calltree_add_conference_to_current_calls(conference_obj_t* conf) ...@@ -1076,7 +1075,6 @@ void calltree_add_conference_to_current_calls(conference_obj_t* conf)
if (pixbuf_security) if (pixbuf_security)
g_object_unref(pixbuf_security); g_object_unref(pixbuf_security);
for (GSList *part = conf->participant_list; part; part = g_slist_next(part)) { for (GSList *part = conf->participant_list; part; part = g_slist_next(part)) {
const gchar * const call_id = (gchar *) part->data; const gchar * const call_id = (gchar *) part->data;
callable_obj_t *call = calllist_get_call(current_calls_tab, call_id); callable_obj_t *call = calllist_get_call(current_calls_tab, call_id);
...@@ -1106,7 +1104,7 @@ void calltree_remove_conference_recursive(calltab_t* tab, const conference_obj_t ...@@ -1106,7 +1104,7 @@ void calltree_remove_conference_recursive(calltab_t* tab, const conference_obj_t
/* if the nth child of parent has one or more children */ /* if the nth child of parent has one or more children */
if (gtk_tree_model_iter_nth_child(model, &iter_parent, parent, i)) { if (gtk_tree_model_iter_nth_child(model, &iter_parent, parent, i)) {
/* RECRUSION! */ /* RECURSION! */
if (gtk_tree_model_iter_has_child(model, &iter_parent)) if (gtk_tree_model_iter_has_child(model, &iter_parent))
calltree_remove_conference_recursive(tab, conf, &iter_parent); calltree_remove_conference_recursive(tab, conf, &iter_parent);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment