[evolution] Remove an unnecessary variable from get_attachment_list().



commit cdfa00701f45b3ada6bbec771ab4531b09a7b83d
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed May 13 17:27:50 2009 -0400

    Remove an unnecessary variable from get_attachment_list().
---
 calendar/gui/dialogs/comp-editor.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 4af998e..2a15133 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -197,7 +197,7 @@ get_attachment_list (CompEditor *editor)
 	EAttachmentView *view;
 	GtkTreeModel *model;
 	GtkTreeIter iter;
-	GSList *parts = NULL, *list = NULL;
+	GSList *list = NULL;
 	const char *comp_uid = NULL;
 	const char *local_store = e_cal_get_local_attachment_store (editor->priv->client);
 	gboolean valid;
@@ -282,8 +282,6 @@ get_attachment_list (CompEditor *editor)
 		g_free (filename);
 	}
 
-	if (parts)
-		g_slist_free (parts);
 	return list;
 }
 



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