diff options
author | Jonny Lamb <jonnylamb@gnome.org> | 2011-05-12 21:33:16 +0800 |
---|---|---|
committer | Jonny Lamb <jonnylamb@gnome.org> | 2011-05-12 21:33:37 +0800 |
commit | 11120f662d911b9a50aff7ba46804bcc7c587492 (patch) | |
tree | 1bd26bd01a0afa7e2a2936cf4494d47eba45d74a /libempathy | |
parent | cc5faf8b763d3b1ee5eb4a13525875707bb71217 (diff) | |
download | gsoc2013-empathy-11120f662d911b9a50aff7ba46804bcc7c587492.tar gsoc2013-empathy-11120f662d911b9a50aff7ba46804bcc7c587492.tar.gz gsoc2013-empathy-11120f662d911b9a50aff7ba46804bcc7c587492.tar.bz2 gsoc2013-empathy-11120f662d911b9a50aff7ba46804bcc7c587492.tar.lz gsoc2013-empathy-11120f662d911b9a50aff7ba46804bcc7c587492.tar.xz gsoc2013-empathy-11120f662d911b9a50aff7ba46804bcc7c587492.tar.zst gsoc2013-empathy-11120f662d911b9a50aff7ba46804bcc7c587492.zip |
message: stop storing pending-message-id
We're storing the TpSignalledMessage for that nowadays.
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-message.c | 21 | ||||
-rw-r--r-- | libempathy/empathy-message.h | 2 |
2 files changed, 0 insertions, 23 deletions
diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c index 64977e007..25ec498ce 100644 --- a/libempathy/empathy-message.c +++ b/libempathy/empathy-message.c @@ -596,16 +596,6 @@ empathy_message_type_to_str (TpChannelTextMessageType type) } } -guint -empathy_message_get_id (EmpathyMessage *message) -{ - EmpathyMessagePriv *priv = GET_PRIV (message); - - g_return_val_if_fail (EMPATHY_IS_MESSAGE (message), 0); - - return priv->id; -} - gboolean empathy_message_is_incoming (EmpathyMessage *message) { @@ -651,10 +641,8 @@ empathy_message_new_from_tp_message (TpMessage *tp_msg, gboolean incoming) { EmpathyMessage *message; - EmpathyMessagePriv *priv; gchar *body; TpChannelTextMessageFlags flags; - guint id; g_return_val_if_fail (TP_IS_MESSAGE (tp_msg), NULL); @@ -670,15 +658,6 @@ empathy_message_new_from_tp_message (TpMessage *tp_msg, "tp-message", tp_msg, NULL); - priv = GET_PRIV (message); - - /* FIXME: this is pretty low level, ideally we shouldn't have to use the - * ID directly but we don't use TpTextChannel's ack API everywhere yet. */ - id = tp_asv_get_uint32 (tp_message_peek (tp_msg, 0), - "pending-message-id", NULL); - - priv->id = id; - g_free (body); return message; } diff --git a/libempathy/empathy-message.h b/libempathy/empathy-message.h index 52e45b6e2..b20ceca16 100644 --- a/libempathy/empathy-message.h +++ b/libempathy/empathy-message.h @@ -77,8 +77,6 @@ gboolean empathy_message_should_highlight (EmpathyMessage TpChannelTextMessageType empathy_message_type_from_str (const gchar *type_str); const gchar * empathy_message_type_to_str (TpChannelTextMessageType type); -guint empathy_message_get_id (EmpathyMessage *message); - gboolean empathy_message_equal (EmpathyMessage *message1, EmpathyMessage *message2); TpChannelTextMessageFlags empathy_message_get_flags (EmpathyMessage *message); |