summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-02-27 12:10:54 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-03-06 13:17:11 +0100
commite526824b420495ffeba31e164bfa12c86084e4da (patch)
tree8db3ced7b6085724c89f505b9735ded2861ae188
parentc1e1489c017c8d830e6b41074a740c2433e692f5 (diff)
remove tp_message_peek()
-rw-r--r--docs/reference/telepathy-glib/telepathy-glib-sections.txt1
-rw-r--r--telepathy-glib/message.c24
-rw-r--r--telepathy-glib/message.h1
3 files changed, 0 insertions, 26 deletions
diff --git a/docs/reference/telepathy-glib/telepathy-glib-sections.txt b/docs/reference/telepathy-glib/telepathy-glib-sections.txt
index 40f0cef80..96e1249ed 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 15656665f..f64b4122c 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
- *
- * <!-- nothing more to say -->
- *
- * 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 608fa6ae4..0086de2a7 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);