diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-03-20 15:12:03 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-03-27 09:31:40 +0000 |
commit | 27c174979592c90912a45614c5259826e6f7901e (patch) | |
tree | 43860505cdda171a5e5d27b312bae69114ba972f | |
parent | 257a40709f672580f526969a529b7b39db3b0f54 (diff) |
mcd_account_delete_async: remove #if 0 code to delete old account storage
We're not going to delete Telepathy-0 account data in Telepathy-1.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=70991
-rw-r--r-- | src/mcd-account.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/mcd-account.c b/src/mcd-account.c index f28b0a18..cabc4f7f 100644 --- a/src/mcd-account.c +++ b/src/mcd-account.c @@ -571,9 +571,6 @@ mcd_account_delete_async (McdAccount *account, gpointer user_data) { McdAccountPrivate *priv = account->priv; -#if 0 - gchar *data_dir_str; -#endif GError *error = NULL; const gchar *name = mcd_account_get_unique_name (account); GTask *task; @@ -610,33 +607,6 @@ mcd_account_delete_async (McdAccount *account, if ((flags & MCD_DBUS_PROP_SET_FLAG_ALREADY_IN_STORAGE) == 0) mcd_storage_delete_account (priv->storage, name); -#if 0 - data_dir_str = get_old_account_data_path (priv); - - if (data_dir_str != NULL) - { - GDir *data_dir = g_dir_open (data_dir_str, 0, NULL); - - if (data_dir) - { - const gchar *filename; - - while ((filename = g_dir_read_name (data_dir)) != NULL) - { - gchar *path = g_build_filename (data_dir_str, filename, NULL); - - g_remove (path); - g_free (path); - } - - g_dir_close (data_dir); - g_rmdir (data_dir_str); - } - - g_free (data_dir_str); - } -#endif - if (!priv->removed) { DEBUG ("emitting Account.Removed for %s", name); |