[Pkg-telepathy-commits] [telepathy-mission-control-6] 26/90: mcd_account_delete_async: remove #if 0 code to delete old account storage

Simon McVittie smcv at debian.org
Wed May 14 12:09:01 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository telepathy-mission-control-6.

commit 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/telepathy-mission-control-6.git



More information about the Pkg-telepathy-commits mailing list