aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-19 20:15:21 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-25 15:22:42 +0800
commit5195f67f8a9fce3da49f875868e288df16df6a52 (patch)
treee4ca1d39ec0c8dd6e27d2d7b59be06dc2a7f2f83 /libempathy
parent515c3eac45ed42be34feac88245a8a509825bf82 (diff)
downloadgsoc2013-empathy-5195f67f8a9fce3da49f875868e288df16df6a52.tar.gz
gsoc2013-empathy-5195f67f8a9fce3da49f875868e288df16df6a52.tar.zst
gsoc2013-empathy-5195f67f8a9fce3da49f875868e288df16df6a52.zip
use tp_text_channel_set_chat_state_async() directly
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-chat.c19
-rw-r--r--libempathy/empathy-tp-chat.h2
2 files changed, 0 insertions, 21 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 34e2d40b2..02bdc80e3 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -1578,25 +1578,6 @@ empathy_tp_chat_send (EmpathyTpChat *self,
g_free (message_body);
}
-void
-empathy_tp_chat_set_state (EmpathyTpChat *self,
- TpChannelChatState state)
-{
- g_return_if_fail (EMPATHY_IS_TP_CHAT (self));
-
- if (tp_proxy_has_interface_by_id (self,
- TP_IFACE_QUARK_CHANNEL_INTERFACE_CHAT_STATE)) {
- DEBUG ("Set state: %d", state);
- tp_cli_channel_interface_chat_state_call_set_chat_state ((TpChannel *) self, -1,
- state,
- tp_chat_async_cb,
- "setting chat state",
- NULL,
- G_OBJECT (self));
- }
-}
-
-
const GList *
empathy_tp_chat_get_pending_messages (EmpathyTpChat *self)
{
diff --git a/libempathy/empathy-tp-chat.h b/libempathy/empathy-tp-chat.h
index 31f9198e1..de55c1a8c 100644
--- a/libempathy/empathy-tp-chat.h
+++ b/libempathy/empathy-tp-chat.h
@@ -81,8 +81,6 @@ EmpathyContact *empathy_tp_chat_get_remote_contact (EmpathyTpChat *chat);
TpAccount * empathy_tp_chat_get_account (EmpathyTpChat *chat);
void empathy_tp_chat_send (EmpathyTpChat *chat,
TpMessage *message);
-void empathy_tp_chat_set_state (EmpathyTpChat *chat,
- TpChannelChatState state);
void empathy_tp_chat_set_property (EmpathyTpChat *chat,
const gchar *name,
const GValue *value);