From c4e279202b0b0dfe5b80320f262ddc121fa9d7b1 Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 21 May 2013 22:40:39 +0100 Subject: [PATCH] Removed unused offline_msg parameter from roster_add --- src/xmpp/roster.c | 8 +++----- src/xmpp/xmpp.h | 3 +-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/xmpp/roster.c b/src/xmpp/roster.c index 59fa2a4e..4a4f1709 100644 --- a/src/xmpp/roster.c +++ b/src/xmpp/roster.c @@ -171,7 +171,7 @@ _roster_handle_result(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza, pending_out = TRUE; } - gboolean added = roster_add(barejid, name, sub, NULL, pending_out); + gboolean added = roster_add(barejid, name, sub, pending_out); if (!added) { log_warning("Attempt to add contact twice: %s", barejid); @@ -229,15 +229,13 @@ roster_reset_search_attempts(void) gboolean roster_add(const char * const barejid, const char * const name, - const char * const subscription, const char * const offline_message, - gboolean pending_out) + const char * const subscription, gboolean pending_out) { gboolean added = FALSE; PContact contact = g_hash_table_lookup(contacts, barejid); if (contact == NULL) { - contact = p_contact_new(barejid, name, subscription, offline_message, - pending_out); + contact = p_contact_new(barejid, name, subscription, NULL, pending_out); g_hash_table_insert(contacts, strdup(barejid), contact); if (name != NULL) { autocomplete_add(name_ac, strdup(name)); diff --git a/src/xmpp/xmpp.h b/src/xmpp/xmpp.h index 3d789074..41d182d2 100644 --- a/src/xmpp/xmpp.h +++ b/src/xmpp/xmpp.h @@ -139,8 +139,7 @@ char * roster_find_contact(char *search_str); char * roster_find_jid(char *search_str); char * roster_find_resource(char *search_str); gboolean roster_add(const char * const barejid, const char * const name, - const char * const subscription, const char * const offline_message, - gboolean pending_out); + const char * const subscription, gboolean pending_out); void roster_change_name(const char * const barejid, const char * const new_name); char * roster_barejid_from_name(const char * const name);