[next] telepathy-mission-control: mcd_account_delete_async: remove #if 0 code to delete old account storage
Simon McVittie
smcv at kemper.freedesktop.org
Thu Apr 3 07:27:59 PDT 2014
Module: telepathy-mission-control
Branch: next
Commit: 27c174979592c90912a45614c5259826e6f7901e
URL: http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=27c174979592c90912a45614c5259826e6f7901e
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Thu Mar 20 15:12:03 2014 +0000
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
---
src/mcd-account.c | 30 ------------------------------
1 file changed, 30 deletions(-)
diff --git a/src/mcd-account.c b/src/mcd-account.c
index f28b0a1..cabc4f7 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);
More information about the telepathy-commits
mailing list