From 4343060bec76253040dbc7c98319f92349e9ab4a Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 31 Jan 2012 18:33:03 +0000 Subject: [PATCH] Remove deprecated tp_message_new() --- telepathy-glib/cm-message.h | 6 ------ telepathy-glib/message.c | 26 -------------------------- 2 files changed, 0 insertions(+), 32 deletions(-) diff --git a/telepathy-glib/cm-message.h b/telepathy-glib/cm-message.h index ac376b6..c96a9ad 100644 --- a/telepathy-glib/cm-message.h +++ b/telepathy-glib/cm-message.h @@ -62,12 +62,6 @@ TpHandle tp_cm_message_get_sender (TpMessage *self); void tp_cm_message_set_sender (TpMessage *self, TpHandle handle); -#ifndef TP_DISABLE_DEPRECATED -TpMessage *tp_message_new (TpBaseConnection *connection, - guint initial_parts, - guint size_hint) G_GNUC_WARN_UNUSED_RESULT; -#endif - G_END_DECLS #endif /* __TP_CM_MESSAGE_H__ */ diff --git a/telepathy-glib/message.c b/telepathy-glib/message.c index d56b85e..91d86fc 100644 --- a/telepathy-glib/message.c +++ b/telepathy-glib/message.c @@ -115,32 +115,6 @@ tp_message_init (TpMessage *self) tp_message_append_part (self); } - -/** - * tp_message_new: - * @connection: a connection on which to reference handles - * @initial_parts: number of parts to create (at least 1) - * @size_hint: preallocate space for this many parts (at least @initial_parts) - * - * - * - * Returns: a newly allocated message suitable to be passed to - * tp_message_mixin_take_received - * - * Since: 0.7.21 - * Deprecated: since 0.13.9. Use tp_cm_message_new() - */ -TpMessage * -tp_message_new (TpBaseConnection *connection, - guint initial_parts, - guint size_hint) -{ - g_return_val_if_fail (size_hint >= initial_parts, NULL); - - return tp_cm_message_new (connection, initial_parts); -} - - /** * tp_message_destroy: * @self: a message -- 1.7.9