From 89aa56d51eb943b3ccad23ffa4694c6eec267ced Mon Sep 17 00:00:00 2001
From: David Trattnig <david@subsquare.at>
Date: Fri, 13 Oct 2023 09:56:17 +0200
Subject: [PATCH] refactor: remove obsolete method

---
 src/aura_engine/scheduling/scheduler.py | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

diff --git a/src/aura_engine/scheduling/scheduler.py b/src/aura_engine/scheduling/scheduler.py
index 700ce7ab..68731452 100644
--- a/src/aura_engine/scheduling/scheduler.py
+++ b/src/aura_engine/scheduling/scheduler.py
@@ -391,6 +391,7 @@ class AuraScheduler(threading.Thread):
                 msg = "The FFWD [>>] range exceeds the length of the item. \
                     Drink some tea and wait for the sound of the next item."
                 self.logger.info(msg)
+                return
             else:
                 # Preload and play active item
                 AuraScheduler.PlayCommandClass(self.engine, [active_item])
@@ -423,23 +424,6 @@ class AuraScheduler(threading.Thread):
             self.logger.critical(f"Unknown content type for item {active_item}")
             return
 
-    def get_active_playlist(self):
-        """
-        Retrieve the currently playing playlist.
-
-        If there is no specific playlist for this timeslots, then any "default playlist" available
-        on the timeslot or show level, is returned.
-
-        Returns:
-            (Dict, Playlist): A dictionary holding the playlist type and the resolved playlist
-
-        TODO refactor
-        """
-        timeslot = self.timetable.get_current_timeslot()
-        if timeslot:
-            return self.resolve_playlist(timeslot)
-        return (-1, None)
-
     def resolve_playlist(self, timeslot: Timeslot):
         """
         Retrieve the planned or default playlist for the given timeslot.
-- 
GitLab