aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-calendar-selector.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-01-15 23:16:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-01-16 10:50:05 +0800
commitcae22334fa6bc395ccc421b09e0af94c89297c41 (patch)
tree84881f467c0448db044d8bb3533e044a7152bb2b /calendar/gui/e-calendar-selector.c
parentd37784ed3db20fd74ea4b8d9fdfe58518370cea2 (diff)
downloadgsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.gz
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.bz2
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.lz
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.xz
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.zst
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.zip
Remove dead assignments found by clang.
Diffstat (limited to 'calendar/gui/e-calendar-selector.c')
-rw-r--r--calendar/gui/e-calendar-selector.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/calendar/gui/e-calendar-selector.c b/calendar/gui/e-calendar-selector.c
index 94bd5ae339..d46b4dad18 100644
--- a/calendar/gui/e-calendar-selector.c
+++ b/calendar/gui/e-calendar-selector.c
@@ -110,22 +110,14 @@ calendar_selector_data_dropped (ESourceSelector *selector,
GdkDragAction action,
guint info)
{
- GtkTreeView *tree_view;
- GtkTreeModel *model;
GtkTreePath *path = NULL;
ECal *client;
icalcomponent *icalcomp;
const gchar *string;
- gboolean remove_from_source;
gboolean success = FALSE;
gpointer object = NULL;
- tree_view = GTK_TREE_VIEW (selector);
- model = gtk_tree_view_get_model (tree_view);
-
string = (const gchar *) selection_data->data;
- remove_from_source = (action == GDK_ACTION_MOVE);
-
icalcomp = icalparser_parse_string (string);
if (icalcomp == NULL)
@@ -143,10 +135,8 @@ calendar_selector_data_dropped (ESourceSelector *selector,
destination, E_CAL_SOURCE_TYPE_EVENT);
if (client != NULL) {
- if (e_cal_open (client, TRUE, NULL)) {
- success = TRUE;
+ if (e_cal_open (client, TRUE, NULL))
calendar_selector_update_objects (client, icalcomp);
- }
g_object_unref (client);
}
@@ -162,7 +152,7 @@ exit:
if (object != NULL)
g_object_unref (object);
- return TRUE;
+ return success;
}
static void