summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-11-15 16:49:04 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-01-29 19:28:33 +0000
commit762d3c7746146b7d94b3e3c5df7d78c62e78202f (patch)
tree7c135bd0bfbdcb0840e705873dc575673ebb1850
parent28f6731e92a596eabea5c4975249d5927428f459 (diff)
McdAccountManager: remove unused timed account storage commit
Nothing ever sets write_conf_id nonzero, so this can never be called any more. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=27727
-rw-r--r--src/mcd-account-manager.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/mcd-account-manager.c b/src/mcd-account-manager.c
index 66168243..a71350cc 100644
--- a/src/mcd-account-manager.c
+++ b/src/mcd-account-manager.c
@@ -134,8 +134,6 @@ enum
PROP_CLIENT_FACTORY
};
-static guint write_conf_id = 0;
-
static void register_dbus_service (McdAccountManager *account_manager);
static void release_setup_lock (McdAccountManager *account_manager);
static void setup_account_loaded (McdAccount *account,
@@ -1132,20 +1130,6 @@ properties_iface_init (TpSvcDBusPropertiesClass *iface, gpointer iface_data)
#undef IMPLEMENT
}
-static gboolean
-write_conf (gpointer userdata)
-{
- McdStorage *storage = MCD_STORAGE (userdata);
-
- DEBUG ("called");
- g_source_remove (write_conf_id);
- write_conf_id = 0;
-
- mcd_storage_commit (storage, NULL);
-
- return TRUE;
-}
-
static void
release_setup_lock (McdAccountManager *self)
{
@@ -1614,12 +1598,6 @@ _mcd_account_manager_finalize (GObject *object)
{
McdAccountManagerPrivate *priv = MCD_ACCOUNT_MANAGER_PRIV (object);
- if (write_conf_id)
- {
- write_conf (priv->storage);
- g_assert (write_conf_id == 0);
- }
-
tp_clear_object (&priv->storage);
g_free (priv->account_connections_dir);
remove (priv->account_connections_file);