aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-23 00:22:23 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-23 01:54:39 +0800
commitb72ead7076cd2ba308d32f0ae42fc50efc82bd51 (patch)
treed4b7634cd11d28bb6ce2febefdbecb01e1c38ca0
parentbd062af39b10bb87d86b9561001f4ab9184e037d (diff)
downloadgsoc2013-empathy-b72ead7076cd2ba308d32f0ae42fc50efc82bd51.tar
gsoc2013-empathy-b72ead7076cd2ba308d32f0ae42fc50efc82bd51.tar.gz
gsoc2013-empathy-b72ead7076cd2ba308d32f0ae42fc50efc82bd51.tar.bz2
gsoc2013-empathy-b72ead7076cd2ba308d32f0ae42fc50efc82bd51.tar.lz
gsoc2013-empathy-b72ead7076cd2ba308d32f0ae42fc50efc82bd51.tar.xz
gsoc2013-empathy-b72ead7076cd2ba308d32f0ae42fc50efc82bd51.tar.zst
gsoc2013-empathy-b72ead7076cd2ba308d32f0ae42fc50efc82bd51.zip
Remove dead code and fix some coding style issues
-rw-r--r--libempathy-gtk/empathy-account-widget.h3
-rw-r--r--src/empathy-accounts-dialog.c4
2 files changed, 1 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-account-widget.h b/libempathy-gtk/empathy-account-widget.h
index f44edcc6a..415934a2d 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 ad96ba921..40f46e49e 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);
}