view iface: remove more unused methods
GcalView::draw_event overlapped a bit with GcalView::will_add_event, so the same reasons for removing one stand for the other. GcalView::clear was a hack for the composited GcalDayView which has gone, and was a bad experiment.
This commit is contained in:
@@ -227,29 +227,6 @@ gcal_view_get_right_header (GcalView *view)
|
||||
return GCAL_VIEW_GET_INTERFACE (view)->get_right_header (view);
|
||||
}
|
||||
|
||||
/**
|
||||
* gcal_view_draw_event:
|
||||
* @view: a #GcalView
|
||||
* @start_date: an #icaltimetype object. The starting date of the event
|
||||
* @end_date: an #icaltimetype object. The edn-date of the event
|
||||
*
|
||||
* Whether the event within these boundaries will be drawn by the #GcalView implementation
|
||||
*
|
||||
* Returns: %TRUE if it is, %FALSE otherwise
|
||||
**/
|
||||
gboolean
|
||||
gcal_view_draw_event (GcalView *view,
|
||||
icaltimetype *start_date,
|
||||
icaltimetype *end_date)
|
||||
{
|
||||
g_return_val_if_fail (GCAL_IS_VIEW (view), FALSE);
|
||||
g_return_if_fail (GCAL_VIEW_GET_INTERFACE (view)->draw_event);
|
||||
|
||||
return GCAL_VIEW_GET_INTERFACE (view)->draw_event (view,
|
||||
start_date,
|
||||
end_date);
|
||||
}
|
||||
|
||||
/**
|
||||
* gcal_view_get_by_uuid:
|
||||
* @view: a #GcalView
|
||||
@@ -270,21 +247,3 @@ gcal_view_get_by_uuid (GcalView *view,
|
||||
|
||||
return GCAL_VIEW_GET_INTERFACE (view)->get_by_uuid (view, uuid);
|
||||
}
|
||||
|
||||
/**
|
||||
* gcal_view_clear:
|
||||
* @view: a #GcalView object
|
||||
*
|
||||
* Destroy every children inside the view.
|
||||
*
|
||||
* Note: this is a hack because of not-working container code
|
||||
* for day and week view composited widgets.
|
||||
**/
|
||||
void
|
||||
gcal_view_clear (GcalView *view)
|
||||
{
|
||||
g_return_if_fail (GCAL_IS_VIEW (view));
|
||||
g_return_if_fail (GCAL_VIEW_GET_INTERFACE (view)->clear);
|
||||
|
||||
GCAL_VIEW_GET_INTERFACE (view)->clear (view);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user