Skip to content
Snippets Groups Projects
Verified Commit 43c1a639 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Remove unused method

parent d97d5c9d
No related branches found
No related tags found
No related merge requests found
...@@ -575,27 +575,6 @@ class Schedule(models.Model): ...@@ -575,27 +575,6 @@ class Schedule(models.Model):
return timeslots 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 # FIXME: this does not belong here
@staticmethod @staticmethod
def generate_conflicts(timeslots): def generate_conflicts(timeslots):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment