summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2012-01-27 21:56:19 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2012-01-27 22:16:00 +0000
commitfb5672370cad426fa90a4906824704a4f5699cc9 (patch)
treeb5bb02b6a2c0380f0268268b009b0fa56ff70220 /lib
parent9fed5574a65c7d7318cd1c86e7e9ffc741139966 (diff)
Delete LmConnection API.
This is it! There is now nothing left but a build system and some empty headers. The last functional vestige was the GCancellable used in _gabble_connection_send_with_reply(), which I basically just moved to GabbleConnection. That function should really die as well, but I'll leave that for another lifetime.
Diffstat (limited to 'lib')
-rw-r--r--lib/loudmouth/lm-connection.c38
-rw-r--r--lib/loudmouth/lm-connection.h15
-rw-r--r--lib/loudmouth/lm-types.h2
3 files changed, 0 insertions, 55 deletions
diff --git a/lib/loudmouth/lm-connection.c b/lib/loudmouth/lm-connection.c
index 912b88431..1146514cc 100644
--- a/lib/loudmouth/lm-connection.c
+++ b/lib/loudmouth/lm-connection.c
@@ -19,41 +19,3 @@
*/
#include "lm-connection.h"
-#include "lm-message-handler.h"
-
-void
-lm_connection_unref (LmConnection *connection)
-{
- g_cancellable_cancel (connection->iq_reply_cancellable);
- g_object_unref (connection->iq_reply_cancellable);
- connection->iq_reply_cancellable = NULL;
-
- if (connection->porter != NULL)
- {
- g_object_unref (connection->porter);
- connection->porter = NULL;
- }
-
- g_free (connection);
-}
-
-LmConnection *
-lm_connection_new (void)
-{
- LmConnection *connection;
-
- connection = g_malloc (sizeof (LmConnection));
- connection->porter = NULL;
- connection->iq_reply_cancellable = g_cancellable_new ();
-
- return connection;
-}
-
-void
-lm_connection_set_porter (LmConnection *connection,
- WockyPorter *porter)
-{
- g_assert (connection != NULL);
- g_assert (connection->porter == NULL);
- connection->porter = g_object_ref (porter);
-}
diff --git a/lib/loudmouth/lm-connection.h b/lib/loudmouth/lm-connection.h
index 97fb08c23..bd412d633 100644
--- a/lib/loudmouth/lm-connection.h
+++ b/lib/loudmouth/lm-connection.h
@@ -29,21 +29,6 @@
G_BEGIN_DECLS
-struct _LmConnection
-{
- WockyPorter *porter;
- GCancellable *iq_reply_cancellable;
-};
-
-LmConnection * lm_connection_new (void);
-
-void lm_connection_unref (LmConnection *connection);
-
-/* Fake API. This is not part of loudmouth */
-
-void lm_connection_set_porter (LmConnection *connection,
- WockyPorter *porter);
-
G_END_DECLS
#endif /* #ifndef __LM_CONNECTION_H__ */
diff --git a/lib/loudmouth/lm-types.h b/lib/loudmouth/lm-types.h
index 0fc37b48f..f2599c590 100644
--- a/lib/loudmouth/lm-types.h
+++ b/lib/loudmouth/lm-types.h
@@ -5,8 +5,6 @@
G_BEGIN_DECLS
-typedef struct _LmConnection LmConnection;
-
G_END_DECLS
#endif /* #ifndef __LM_TYPES_H__ */