From d36a3f2746a07695b5920df4f569f85e7aec3a5b Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Mon, 22 Jun 2015 18:09:50 +0200 Subject: [PATCH] remove undocumented and redundant function (linphone_chat_message_set_external_body_url() could be used instead) --- coreapi/chat.c | 5 ++--- coreapi/linphonecore.h | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/coreapi/chat.c b/coreapi/chat.c index 81a35cc7f..9a850e638 100644 --- a/coreapi/chat.c +++ b/coreapi/chat.c @@ -1068,20 +1068,19 @@ const char* linphone_chat_message_get_external_body_url(const LinphoneChatMessag return message->external_body_url; } -void linphone_chat_message_set_external_body_url(LinphoneChatMessage* message,const char* url) { +void linphone_chat_message_set_external_body_url(LinphoneChatMessage* message, const char* url) { if (message->external_body_url) { ms_free(message->external_body_url); } message->external_body_url=url?ms_strdup(url):NULL; } - const char* linphone_chat_message_get_appdata(const LinphoneChatMessage* message){ return message->appdata; } void linphone_chat_message_set_appdata(LinphoneChatMessage* message, const char* data){ - if( message->appdata ){ + if ( message->appdata ){ ms_free(message->appdata); } message->appdata = data? ms_strdup(data) : NULL; diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index f0ca66830..d13583bf8 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -1560,7 +1560,6 @@ LINPHONE_PUBLIC void linphone_chat_room_send_message2(LinphoneChatRoom *cr, Linp * by calling linphone_chat_message_get_callbacks(). */ LINPHONE_PUBLIC void linphone_chat_room_send_chat_message(LinphoneChatRoom *cr, LinphoneChatMessage *msg); -LINPHONE_PUBLIC void linphone_chat_room_update_url(LinphoneChatRoom *cr, LinphoneChatMessage *msg); /** * Mark all messages of the conversation as read