summaryrefslogtreecommitdiff
path: root/src/mcd-master.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-08-29 16:53:47 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-04 13:28:26 +0100
commit7220e55986ca13ac14bb56bae51986e21be892af (patch)
treee500ff764f1929644110b9f0d8d202d22f2e636b /src/mcd-master.c
parentea78c344fce0373188ac5549f664da0a6de1f500 (diff)
downloadtelepathy-mission-control-7220e55986ca13ac14bb56bae51986e21be892af.tar.gz
Remove the remains of McdTransportPlugin
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68712 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Diffstat (limited to 'src/mcd-master.c')
-rw-r--r--src/mcd-master.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/mcd-master.c b/src/mcd-master.c
index 77182f1e..b123fabd 100644
--- a/src/mcd-master.c
+++ b/src/mcd-master.c
@@ -65,7 +65,6 @@
#include <io.h>
#endif
-#include "kludge-transport.h"
#include "mcd-master.h"
#include "mcd-master-priv.h"
#include "mcd-manager.h"
@@ -74,7 +73,6 @@
#include "mcd-account-manager-priv.h"
#include "mcd-account-conditions.h"
#include "mcd-account-priv.h"
-#include "mcd-transport.h"
#include "plugin-loader.h"
#ifdef G_OS_UNIX
@@ -94,8 +92,6 @@ struct _McdMasterPrivate
TpDBusDaemon *dbus_daemon;
TpSimpleClientFactory *client_factory;
- GPtrArray *transport_plugins;
-
/* Current pending sleep timer */
gint shutdown_timeout_id;
@@ -114,12 +110,6 @@ enum
PROP_ACCOUNT_MANAGER,
};
-typedef struct {
- gint priority;
- McdAccountConnectionFunc func;
- gpointer userdata;
-} McdAccountConnectionData;
-
/* Used to poison 'default_master' when the object it points to is disposed.
* The default_master should basically be alive for the duration of the MC run.
*/
@@ -182,20 +172,6 @@ _mcd_master_dispose (GObject * object)
}
priv->is_disposed = TRUE;
- if (priv->transport_plugins)
- {
- guint i;
-
- for (i = 0; i < priv->transport_plugins->len; i++)
- {
- McdTransportPlugin *plugin;
- plugin = g_ptr_array_index (priv->transport_plugins, i);
- g_object_unref (plugin);
- }
- g_ptr_array_unref (priv->transport_plugins);
- priv->transport_plugins = NULL;
- }
-
tp_clear_object (&priv->account_manager);
tp_clear_object (&priv->dbus_daemon);
tp_clear_object (&priv->dispatcher);
@@ -240,9 +216,6 @@ mcd_master_constructor (GType type, guint n_params,
tp_proxy_get_dbus_connection (TP_PROXY (priv->dbus_daemon))),
TRUE);
- mcd_kludge_transport_install (master,
- mcd_account_manager_get_connectivity_monitor (priv->account_manager));
-
return (GObject *) master;
}
@@ -296,8 +269,6 @@ mcd_master_init (McdMaster * master)
if (!default_master)
default_master = master;
- master->priv->transport_plugins = g_ptr_array_new ();
-
/* This newer plugin API is currently always enabled */
/* .... and is enabled before anything else as potentially *
* any mcd component could have a new-API style plugin */
@@ -367,23 +338,6 @@ mcd_master_get_dbus_daemon (McdMaster *master)
return master->priv->dbus_daemon;
}
-/**
- * mcd_plugin_register_transport:
- * @master: the #McdMaster.
- * @transport_plugin: the #McdTransportPlugin.
- *
- * Registers @transport_plugin as a transport monitoring object.
- * The @master takes ownership of the transport (i.e., it doesn't increment its
- * reference count).
- */
-void
-mcd_master_register_transport (McdMaster *master,
- McdTransportPlugin *transport_plugin)
-{
- DEBUG ("called");
- g_ptr_array_add (master->priv->transport_plugins, transport_plugin);
-}
-
/* Milliseconds to wait for Connectivity coming back up before exiting MC */
#define EXIT_COUNTDOWN_TIME 5000