[empathy/mc5] Remove dead code and fix some coding style issues



commit b72ead7076cd2ba308d32f0ae42fc50efc82bd51
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Sat Aug 22 17:22:23 2009 +0100

    Remove dead code and fix some coding style issues

 libempathy-gtk/empathy-account-widget.h |    3 ---
 src/empathy-accounts-dialog.c           |    4 +---
 2 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/libempathy-gtk/empathy-account-widget.h b/libempathy-gtk/empathy-account-widget.h
index f44edcc..415934a 100644
--- a/libempathy-gtk/empathy-account-widget.h
+++ b/libempathy-gtk/empathy-account-widget.h
@@ -61,9 +61,6 @@ GType empathy_account_widget_get_type (void);
 
 GtkWidget *empathy_account_widget_get_widget (EmpathyAccountWidget *widget);
 
-//EmpathyAccountWidget *empathy_account_widget_new_for_protocol (
-//    const char *protocol,
-//    EmpathyAccountSettings *settings);
 EmpathyAccountWidget * empathy_account_widget_new_for_protocol (
     const char *protocol,
     EmpathyAccountSettings *settings,
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index ad96ba9..40f46e4 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -644,7 +644,6 @@ accounts_dialog_model_add_columns (EmpathyAccountsDialog *dialog)
 
   /* Account column */
   column = gtk_tree_view_column_new ();
-  //gtk_tree_view_column_set_title (column, _("Accounts"));
   gtk_tree_view_column_set_expand (column, TRUE);
   gtk_tree_view_append_column (view, column);
 
@@ -711,7 +710,6 @@ static void
 accounts_dialog_model_selection_changed (GtkTreeSelection *selection,
     EmpathyAccountsDialog *dialog)
 {
-//  EmpathyAccountsDialogPriv priv = GET_PRIV (dialog);
   EmpathyAccountSettings *settings;
   GtkTreeModel *model;
   GtkTreeIter   iter;
@@ -726,7 +724,7 @@ accounts_dialog_model_selection_changed (GtkTreeSelection *selection,
 
   accounts_dialog_update_settings (dialog, settings);
 
-  if (settings)
+  if (settings != NULL)
     g_object_unref (settings);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]