summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2013-11-13 16:04:25 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2014-02-16 23:52:31 +0000
commit3dbd9467780991f00eba209899fdf865141700dd (patch)
treecd74727ffd7ae8288fed578195fa1a0ce6bc4654
parent6e85b2bec3ee5511d596e71438e228ce343c663a (diff)
bluez: Remove BluezBackendFactory class
It was utterly pointless. https://bugzilla.gnome.org/show_bug.cgi?id=712274
-rw-r--r--backends/bluez/bluez-backend-factory.vala31
1 files changed, 4 insertions, 27 deletions
diff --git a/backends/bluez/bluez-backend-factory.vala b/backends/bluez/bluez-backend-factory.vala
index 061db6fa..22ef9a51 100644
--- a/backends/bluez/bluez-backend-factory.vala
+++ b/backends/bluez/bluez-backend-factory.vala
@@ -26,48 +26,25 @@
*/
using Folks;
-using Folks.Backends.BlueZ;
-
-private BackendFactory _backend_factory = null;
/**
* The backend module entry point.
*
- * @param backend_store the {@link BackendStore} to use in this factory.
- *
+ * @backend_store a store to add the BlueZ backends to
* @since 0.9.6
*/
public void module_init (BackendStore backend_store)
{
- _backend_factory = new BackendFactory (backend_store);
+ backend_store.add_backend (new Folks.Backends.BlueZ.Backend ());
}
/**
* The backend module exit point.
*
- * @param backend_store the {@link BackendStore} to use in this factory.
- *
+ * @param backend_store the store to remove the backends from
* @since 0.9.6
*/
public void module_finalize (BackendStore backend_store)
{
- _backend_factory = null;
-}
-
-/**
- * A backend factory to create a single {@link Backend}.
- *
- * @since 0.9.6
- */
-public class Folks.Backends.BlueZ.BackendFactory : Object
-{
- /**
- * {@inheritDoc}
- *
- * @since 0.9.6
- */
- public BackendFactory (BackendStore backend_store)
- {
- backend_store.add_backend (new Backend ());
- }
+ /* FIXME: No way to remove backends from the store. */
}