From 1cbe27fc9f7be998703fba83f573906d7da15912 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 8 Nov 2011 16:55:15 +0100 Subject: contact-list: remove flags https://bugzilla.gnome.org/show_bug.cgi?id=663328 --- libempathy/empathy-contact-list.c | 12 ------------ libempathy/empathy-contact-list.h | 13 ------------- 2 files changed, 25 deletions(-) diff --git a/libempathy/empathy-contact-list.c b/libempathy/empathy-contact-list.c index 38d0a446a..3f24998fb 100644 --- a/libempathy/empathy-contact-list.c +++ b/libempathy/empathy-contact-list.c @@ -224,15 +224,3 @@ empathy_contact_list_remove_group (EmpathyContactList *list, EMPATHY_CONTACT_LIST_GET_IFACE (list)->remove_group (list, group); } } - -EmpathyContactListFlags -empathy_contact_list_get_flags (EmpathyContactList *list) -{ - g_return_val_if_fail (EMPATHY_IS_CONTACT_LIST (list), 0); - - if (EMPATHY_CONTACT_LIST_GET_IFACE (list)->get_flags) { - return EMPATHY_CONTACT_LIST_GET_IFACE (list)->get_flags (list); - } else { - return 0; - } -} diff --git a/libempathy/empathy-contact-list.h b/libempathy/empathy-contact-list.h index f1ed3e8ed..ddd81c332 100644 --- a/libempathy/empathy-contact-list.h +++ b/libempathy/empathy-contact-list.h @@ -34,14 +34,6 @@ G_BEGIN_DECLS #define EMPATHY_IS_CONTACT_LIST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_CONTACT_LIST)) #define EMPATHY_CONTACT_LIST_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), EMPATHY_TYPE_CONTACT_LIST, EmpathyContactListIface)) -typedef enum { - EMPATHY_CONTACT_LIST_CAN_ADD = 1 << 0, - EMPATHY_CONTACT_LIST_CAN_REMOVE = 1 << 1, - EMPATHY_CONTACT_LIST_CAN_ALIAS = 1 << 2, - EMPATHY_CONTACT_LIST_CAN_GROUP = 1 << 3, - EMPATHY_CONTACT_LIST_MESSAGE_ADD = 1 << 4, -} EmpathyContactListFlags; - typedef struct _EmpathyContactListIface EmpathyContactListIface; struct _EmpathyContactListIface { @@ -70,8 +62,6 @@ struct _EmpathyContactListIface { const gchar *new_group); void (*remove_group) (EmpathyContactList *list, const gchar *group); - EmpathyContactListFlags - (*get_flags) (EmpathyContactList *list); }; GType empathy_contact_list_get_type (void) G_GNUC_CONST; @@ -98,9 +88,6 @@ void empathy_contact_list_rename_group (EmpathyContactList *list, void empathy_contact_list_remove_group (EmpathyContactList *list, const gchar *group); -EmpathyContactListFlags - empathy_contact_list_get_flags (EmpathyContactList *list); - G_END_DECLS #endif /* __EMPATHY_CONTACT_LIST_H__ */ -- cgit v1.2.3