[evolution-data-server] Remove unused assignments
- From: Kjartan Maraas <kmaraas src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Remove unused assignments
- Date: Sat, 26 Sep 2009 10:47:49 +0000 (UTC)
commit 4e42363bcbb74c69196f1858dccaad45ab6ceecc
Author: Kjartan Maraas <kmaraas gnome org>
Date: Sat Sep 26 12:47:41 2009 +0200
Remove unused assignments
calendar/libecal/e-cal-recur.c | 8 ++------
libedataserverui/e-tree-model-generator.c | 5 +----
2 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/calendar/libecal/e-cal-recur.c b/calendar/libecal/e-cal-recur.c
index 637e228..6417df7 100644
--- a/calendar/libecal/e-cal-recur.c
+++ b/calendar/libecal/e-cal-recur.c
@@ -1821,7 +1821,7 @@ cal_obj_initialize_recur_data (RecurData *recur_data,
CalObjTime *event_start)
{
GList *elem;
- gint month, yearday, monthday, weekday, week_num, hour, minute, second;
+ gint month, yearday, monthday, weekday, hour, minute, second;
/* Clear the entire RecurData. */
memset (recur_data, 0, sizeof (RecurData));
@@ -1871,12 +1871,8 @@ cal_obj_initialize_recur_data (RecurData *recur_data,
elem = recur->byday;
while (elem) {
weekday = GPOINTER_TO_INT (elem->data);
- elem = elem->next;
- /* The week number is not used when filtering. */
- week_num = GPOINTER_TO_INT (elem->data);
- elem = elem->next;
-
recur_data->weekdays[weekday] = 1;
+ elem = elem->next;
}
/* Create an array of hours from byhour for fast lookup. */
diff --git a/libedataserverui/e-tree-model-generator.c b/libedataserverui/e-tree-model-generator.c
index f473c62..975e88d 100644
--- a/libedataserverui/e-tree-model-generator.c
+++ b/libedataserverui/e-tree-model-generator.c
@@ -570,7 +570,6 @@ static void
delete_node_at_child_path (ETreeModelGenerator *tree_model_generator, GtkTreePath *path)
{
GtkTreePath *parent_path;
- gint parent_index;
GArray *parent_group;
GArray *group;
gint index;
@@ -583,10 +582,8 @@ delete_node_at_child_path (ETreeModelGenerator *tree_model_generator, GtkTreePat
if (node) {
group = node->child_nodes;
- parent_index = gtk_tree_path_get_indices (parent_path) [gtk_tree_path_get_depth (parent_path) - 1];
} else {
group = tree_model_generator->root_nodes;
- parent_index = -1;
}
gtk_tree_path_free (parent_path);
@@ -1209,7 +1206,7 @@ e_tree_model_generator_iter_n_children (GtkTreeModel *tree_model,
GArray *group;
gint index;
- g_return_val_if_fail (E_IS_TREE_MODEL_GENERATOR (tree_model), FALSE);
+ g_return_val_if_fail (E_IS_TREE_MODEL_GENERATOR (tree_model), 0);
if (iter == NULL)
return tree_model_generator->root_nodes ?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]