[polari] room: Remove send() method
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] room: Remove send() method
- Date: Thu, 8 Aug 2013 13:07:16 +0000 (UTC)
commit 3f01d8e3de7783091595f2b4cf79fce14b659f65
Author: Florian Müllner <florian muellner gmail com>
Date: Mon Jul 22 16:19:39 2013 +0200
room: Remove send() method
It doesn't really offer anything over the TpChannel method and
isn't used anymore ...
src/lib/polari-room.c | 22 ----------------------
src/lib/polari-room.h | 1 -
2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/src/lib/polari-room.c b/src/lib/polari-room.c
index 44e04a9..360c3ac 100644
--- a/src/lib/polari-room.c
+++ b/src/lib/polari-room.c
@@ -62,28 +62,6 @@ static guint signals[LAST_SIGNAL];
G_DEFINE_TYPE_WITH_PRIVATE (PolariRoom, polari_room, G_TYPE_OBJECT)
void
-polari_room_send (PolariRoom *room,
- const char *message)
-{
- TpMessage *tp_message;
- TpChannelTextMessageType type;
-
- g_return_if_fail (POLARI_IS_ROOM (room));
-
- type = TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL;
-
- if (g_str_has_prefix (message, "/me "))
- {
- message += strlen ("/me ");
- type = TP_CHANNEL_TEXT_MESSAGE_TYPE_ACTION;
- }
- tp_message = tp_client_message_new_text (type, message);
-
- tp_text_channel_send_message_async (TP_TEXT_CHANNEL (room->priv->channel),
- tp_message, 0, NULL, NULL);
-}
-
-void
polari_room_leave (PolariRoom *room)
{
g_return_if_fail (POLARI_IS_ROOM (room));
diff --git a/src/lib/polari-room.h b/src/lib/polari-room.h
index ee34dd1..c2c5be0 100644
--- a/src/lib/polari-room.h
+++ b/src/lib/polari-room.h
@@ -48,7 +48,6 @@ struct _PolariRoomClass {
GType polari_room_get_type (void) G_GNUC_CONST;
-void polari_room_send (PolariRoom *room, const char *message);
void polari_room_leave (PolariRoom *room);
gboolean polari_room_should_highlight_message (PolariRoom *room,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]