From b5de4092a177d72ab32f12a155b4a604a7360fcb Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 27 Feb 2014 12:10:54 +0100 Subject: [PATCH 09/11] remove tp_message_peek() --- .../telepathy-glib/telepathy-glib-sections.txt | 1 - telepathy-glib/message.c | 24 ---------------------- telepathy-glib/message.h | 1 - 3 files changed, 26 deletions(-) diff --git a/docs/reference/telepathy-glib/telepathy-glib-sections.txt b/docs/reference/telepathy-glib/telepathy-glib-sections.txt index 2ef4f3b..ae071c7 100644 --- a/docs/reference/telepathy-glib/telepathy-glib-sections.txt +++ b/docs/reference/telepathy-glib/telepathy-glib-sections.txt @@ -2102,7 +2102,6 @@ TpMessageMixinPrivate TpMessage tp_message_count_parts tp_message_dup_part -tp_message_peek tp_message_to_text tp_message_get_message_type tp_message_get_received_timestamp diff --git a/telepathy-glib/message.c b/telepathy-glib/message.c index 869574c..5e6d0c0 100644 --- a/telepathy-glib/message.c +++ b/telepathy-glib/message.c @@ -136,30 +136,6 @@ tp_message_count_parts (TpMessage *self) } /** - * tp_message_peek: - * @self: a message - * @part: a part number - * - * - * - * Returns: (transfer none) (element-type utf8 GObject.Value): - * the #GHashTable used to implement the given part, or %NULL if the - * part number is out of range. The hash table is only valid as long as the - * message is valid and the part is not deleted. - * - * Since: 0.7.21 - */ -const GHashTable * -tp_message_peek (TpMessage *self, - guint part) -{ - if (part >= self->parts->len) - return NULL; - - return g_ptr_array_index (self->parts, part); -} - -/** * tp_message_dup_part: * @self: a message * @part: a part number diff --git a/telepathy-glib/message.h b/telepathy-glib/message.h index 608fa6a..0086de2 100644 --- a/telepathy-glib/message.h +++ b/telepathy-glib/message.h @@ -44,7 +44,6 @@ typedef struct _TpMessageClass TpMessageClass; GType tp_message_get_type (void); guint tp_message_count_parts (TpMessage *self); -const GHashTable *tp_message_peek (TpMessage *self, guint part); _TP_AVAILABLE_IN_0_20 GVariant *tp_message_dup_part (TpMessage *self, guint part); guint tp_message_append_part (TpMessage *self); -- 1.8.5.3