From: Philip Withnall Date: Mon, 23 Aug 2010 11:33:32 +0000 (+0100) Subject: Remove empathy_contact_new_for_log() X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=597f34ccdbe2000aad148147d9ecafb3e17c9e0a Remove empathy_contact_new_for_log() It was unused. --- diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index 7b7b55c1..a891a636 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -538,23 +538,6 @@ empathy_contact_from_tpl_contact (TpAccount *account, return retval; } -EmpathyContact * -empathy_contact_new_for_log (TpAccount *account, - const gchar *id, - const gchar *alias, - gboolean is_user) -{ - g_return_val_if_fail (id != NULL, NULL); - g_assert (account != NULL); - - return g_object_new (EMPATHY_TYPE_CONTACT, - "account", account, - "id", id, - "alias", alias, - "is-user", is_user, - NULL); -} - TpContact * empathy_contact_get_tp_contact (EmpathyContact *contact) { diff --git a/libempathy/empathy-contact.h b/libempathy/empathy-contact.h index b6d5753d..3c144a37 100644 --- a/libempathy/empathy-contact.h +++ b/libempathy/empathy-contact.h @@ -73,8 +73,6 @@ typedef enum { GType empathy_contact_get_type (void) G_GNUC_CONST; EmpathyContact * empathy_contact_from_tpl_contact (TpAccount *account, TplEntity *tpl_contact); -EmpathyContact * empathy_contact_new_for_log (TpAccount *account, - const gchar *id, const gchar *alias, gboolean is_user); TpContact * empathy_contact_get_tp_contact (EmpathyContact *contact); const gchar * empathy_contact_get_id (EmpathyContact *contact); void empathy_contact_set_id (EmpathyContact *contact, const gchar *id);