view: Remove first weekday helpers when unecessary

Not all views need to know the first weekday, and those
who need, it can be stored internally.
This commit is contained in:
Georges Basile Stavracas Neto
2018-01-28 10:20:19 -02:00
parent 30ba757c40
commit 037567209c
10 changed files with 6 additions and 116 deletions
+1 -10
View File
@@ -1671,7 +1671,7 @@ gcal_week_header_init (GcalWeekHeader *self)
self->selection_start = -1;
self->selection_end = -1;
self->dnd_cell = -1;
self->weather_service = NULL;
self->first_weekday = get_first_weekday ();
gtk_widget_init_template (GTK_WIDGET (self));
@@ -1823,15 +1823,6 @@ gcal_week_header_set_manager (GcalWeekHeader *self,
self);
}
void
gcal_week_header_set_first_weekday (GcalWeekHeader *self,
gint nr_day)
{
g_return_if_fail (GCAL_IS_WEEK_HEADER (self));
self->first_weekday = nr_day;
}
void
gcal_week_header_add_event (GcalWeekHeader *self,
GcalEvent *event)