aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/ea-week-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/ea-week-view.c')
-rw-r--r--calendar/gui/ea-week-view.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/calendar/gui/ea-week-view.c b/calendar/gui/ea-week-view.c
index 24d6e8de83..4d77cda1e3 100644
--- a/calendar/gui/ea-week-view.c
+++ b/calendar/gui/ea-week-view.c
@@ -232,14 +232,9 @@ ea_week_view_get_n_children (AtkObject *accessible)
event = &g_array_index (week_view->events,
EWeekViewEvent, event_index);
- if (!event)
- continue;
span = &g_array_index (week_view->spans, EWeekViewEventSpan,
event->spans_index + 0);
- if (!span)
- continue;
-
/* at least one of the event spans is visible, count it */
if (span->text_item)
++count;
@@ -299,15 +294,9 @@ ea_week_view_ref_child (AtkObject *accessible,
event = &g_array_index (week_view->events,
EWeekViewEvent, event_index);
- if (!event)
- continue;
-
span = &g_array_index (week_view->spans, EWeekViewEventSpan,
event->spans_index + span_num);
- if (!span)
- continue;
-
current_day = span->start_day;
if (span->text_item)
++count;