event: Remove unused method

Comparing ranges is so easy now that we don't need this
helper anymore.
This commit is contained in:
Georges Basile Stavracas Neto
2020-04-14 19:08:06 +00:00
parent fd32492053
commit 98e6ac28e7
2 changed files with 0 additions and 16 deletions
-13
View File
@@ -1876,16 +1876,3 @@ gcal_event_format_date (GcalEvent *self)
return g_steal_pointer (&formatted_string);
}
gboolean
gcal_event_is_within_range (GcalEvent *self,
GcalRange *range)
{
GcalRange *event_range;
g_return_val_if_fail (GCAL_IS_EVENT (self), FALSE);
g_return_val_if_fail (range != NULL, FALSE);
event_range = gcal_event_get_range (self);
return gcal_range_calculate_overlap (event_range, range, NULL) != GCAL_RANGE_NO_OVERLAP;
}
-3
View File
@@ -134,9 +134,6 @@ void gcal_event_get_original_timezones (GcalEvent
gchar* gcal_event_format_date (GcalEvent *self);
gboolean gcal_event_is_within_range (GcalEvent *self,
GcalRange *range);
G_END_DECLS
#endif /* GCAL_EVENT_H */