diff --git a/program/models.py b/program/models.py index a089ab54d148d2078234037475655cc6dba3081a..a0ba4630cc1fbfa1ee076a3dbbc5d2a4ab08aec2 100644 --- a/program/models.py +++ b/program/models.py @@ -575,27 +575,6 @@ class Schedule(models.Model): return timeslots - # FIXME: this does not belong here - @staticmethod - def get_collisions(timeslots): - """ - Tests a list of timeslot objects for colliding timeslots in the database - Returns a list of collisions, containing colliding timeslot IDs or None - Keeps indices from input list for later comparison - """ - - collisions = [] - - for ts in timeslots: - collision = TimeSlot.objects.get_colliding_timeslots(ts) - - if collision: - collisions.append(collision[0]) # TODO: Do we really always retrieve one? - else: - collisions.append(None) - - return collisions - # FIXME: this does not belong here @staticmethod def generate_conflicts(timeslots):