From 02d1e6941cc8cf264f25496e3883736cd8408653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= <rafael.carre@savoirfairelinux.com> Date: Mon, 12 Sep 2011 10:50:51 -0400 Subject: [PATCH] * #5695 : addressbook : remove unused stuff in the client --- gnome/src/contacts/addressbook.h | 41 -------------------------------- gnome/src/contacts/calllist.c | 2 +- 2 files changed, 1 insertion(+), 42 deletions(-) diff --git a/gnome/src/contacts/addressbook.h b/gnome/src/contacts/addressbook.h index c9d7b99742..f99b44996d 100644 --- a/gnome/src/contacts/addressbook.h +++ b/gnome/src/contacts/addressbook.h @@ -39,10 +39,6 @@ #define __ADDRESSBOOK_H__ #include <gtk/gtk.h> -// #include <addressbook/eds.h> - - -#define EMPTY_ENTRY "empty" typedef enum {ABOOK_QUERY_IS, ABOOK_QUERY_BEGINS_WITH, ABOOK_QUERY_CONTAINS} AddrbookSearchType; @@ -94,41 +90,4 @@ struct AddrBookHandle { void (*search_cb)(GList *, gpointer); }; -/** - * Initialize addressbook - */ -void addressbook_init(gchar **book_list); - -/** - * Return addressbook state - */ -gboolean addressbook_is_ready(); - -/** - * Return addressbook state - */ -gboolean addressbook_is_enabled(); - -/** - * Return if at least one addressbook is active - */ -gboolean addressbook_is_active(); - - -/** - * Perform a search in addressbook - */ -void addressbook_search (AddrBookHandle *, GtkEntry *, AddressBook_Config *); - -/** - * Get a list of addressbook book - */ -GSList *addressbook_get_books_data(gchar **book_list); - -book_data_t *addressbook_get_book_data_by_uid(gchar *); - -void addressbook_set_current_book(gchar *); - -void addressbook_set_search_type(AddrbookSearchType); - #endif diff --git a/gnome/src/contacts/calllist.c b/gnome/src/contacts/calllist.c index ff0bb05d45..99da37e44f 100644 --- a/gnome/src/contacts/calllist.c +++ b/gnome/src/contacts/calllist.c @@ -47,7 +47,7 @@ gint is_callID_callstruct(gconstpointer a, gconstpointer b) void calllist_add_contact (gchar *contact_name, gchar *contact_phone, contact_type_t type, GdkPixbuf *photo) { /* Check if the information is valid */ - if (g_strcasecmp (contact_phone, EMPTY_ENTRY) == 0) + if (g_strcasecmp (contact_phone, "empty") == 0) return; callable_obj_t *new_call = create_new_call (CONTACT, CALL_STATE_DIALING, "", "", contact_name, contact_phone); -- GitLab