From 43c1a6391d764e3b0ed1a8a03e3ebe83c2818963 Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Tue, 4 Apr 2023 14:55:24 -0400
Subject: [PATCH] Remove unused method

---
 program/models.py | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/program/models.py b/program/models.py
index a089ab54..a0ba4630 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):
-- 
GitLab