]> git.0d.be Git - empathy.git/commitdiff
Remove old Facebook code
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 31 Aug 2011 12:58:08 +0000 (14:58 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 6 Sep 2011 05:37:08 +0000 (07:37 +0200)
Add a TODO for now.

goa-mc-plugin/mcp-account-manager-goa.c

index 390e8f10d0b96149d4fcbf87e03a75f834b15ec3..a0a8b3f50c6cff92dcc1b376cba2b2b1879e6206 100644 (file)
@@ -102,9 +102,6 @@ get_tp_parameters (GoaAccount *account)
 
 #define PARAM(key, value) g_hash_table_insert (params, key, g_strdup (value));
 
- // { "param-account", "chat.facebook.com" },
- // { "param-server", "chat.facebook.com" },
-
   if (!tp_strdiff (type, "google"))
     {
       PARAM ("manager", "gabble");
@@ -128,6 +125,8 @@ get_tp_parameters (GoaAccount *account)
       return NULL;
     }
 
+  /* TODO: add Facebook support */
+
   /* generic properties */
   PARAM ("DisplayName", goa_account_get_presentation_identity (account));
   PARAM ("ConnectAutomatically", "true");
@@ -373,33 +372,6 @@ mcp_account_manager_goa_set (const McpAccountStorage *self,
 
   /* Pretend we save everything so MC won't save this in accounts.cfg */
   return TRUE;
-  // if (!tp_strdiff (acct, FACEBOOK_ACCOUNT_NAME))
-  //   {
-  //     if (!tp_strdiff (key, "Enabled"))
-  //       {
-  //         gboolean enabled = !tp_strdiff (val, "true");
-
-  //         DEBUG ("set Enabled to %s", enabled ? "enabled" : "disabled");
-
-  //         gconf_client_set_bool (priv->gconf, BISHO_FB_GCONF_ENABLE_CHAT_KEY,
-  //             enabled, &error);
-  //         if (error != NULL)
-  //           {
-  //             g_warning ("Unable to save %s/Enable state in GConf: %s",
-  //                 acct, error->message);
-  //             g_clear_error (&error);
-  //           }
-
-  //         return TRUE;
-  //       }
-  //     else
-  //       /* pretend we saved everything else */
-  //       return TRUE;
-  //   }
-  // else
-  //   {
-  //     return FALSE;
-  //   }
 }
 
 
@@ -411,18 +383,8 @@ mcp_account_manager_goa_delete (const McpAccountStorage *self,
 {
   DEBUG ("%s: (%s, %s)", G_STRFUNC, acct, key);
 
-//  if (!tp_strdiff (acct, FACEBOOK_ACCOUNT_NAME))
-//    {
-//      if (!tp_strdiff (key, "Enabled"))
-//        return TRUE;
-//      else
-//        /* pretend we deleted everything else */
-//        return TRUE;
-//    }
-//  else
-//    {
-//      return FALSE;
-//    }
+  /* Pretend we deleted everything */
+  return TRUE;
 }