From 95fecabb31d006fa916561f631bceb678c764fb5 Mon Sep 17 00:00:00 2001 From: Santiago Soto Date: Wed, 3 Jul 2024 15:56:27 -0300 Subject: [PATCH] Remove unused code --- music_assistant/server/providers/snapcast/__init__.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/music_assistant/server/providers/snapcast/__init__.py b/music_assistant/server/providers/snapcast/__init__.py index 92cdc6ec..8d33af7d 100644 --- a/music_assistant/server/providers/snapcast/__init__.py +++ b/music_assistant/server/providers/snapcast/__init__.py @@ -68,11 +68,6 @@ CONF_SERVER_DRYOUT_MS = "snapcast_stream_dryout_ms" # airplay has fixed sample rate/bit depth so make this config entry static and hidden CONF_ENTRY_SAMPLE_RATES_SNAPCAST = create_sample_rates_config_entry(48000, 16, 48000, 16, True) -SNAP_STREAM_STATUS_MAP = { - "idle": PlayerState.IDLE, - "playing": PlayerState.PLAYING, - "unknown": PlayerState.IDLE, -} DEFAULT_SNAPSERVER_PORT = 1705 SNAPWEB_DIR: Final[pathlib.Path] = pathlib.Path(__file__).parent.resolve().joinpath("snapweb") @@ -605,11 +600,6 @@ class SnapCastProvider(PlayerProvider): msg = "Unable to create stream - No free port found?" raise RuntimeError(msg) - def _get_player_state(self, player_id: str) -> PlayerState: - """Return the state of the player.""" - snap_group = self._get_snapgroup(player_id) - return SNAP_STREAM_STATUS_MAP.get(snap_group.stream_status) - def _set_childs_state(self, player_id: str, state: PlayerState) -> None: """Set the state of the child`s of the player.""" for child_player_id in self._group_childs(player_id): -- 2.34.1