From 2f091715edd0edd4e1e65ac9bb922de4f15ce331 Mon Sep 17 00:00:00 2001 From: Matthew Haughton <3flex@users.noreply.github.com> Date: Fri, 25 Oct 2024 23:16:50 +1100 Subject: [PATCH] Remove unused parameters --- src/components/commandHandler.ts | 4 ++-- src/components/playbackManager.ts | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/components/commandHandler.ts b/src/components/commandHandler.ts index 668fe033..43c8ba59 100644 --- a/src/components/commandHandler.ts +++ b/src/components/commandHandler.ts @@ -90,13 +90,13 @@ export abstract class CommandHandler { static nextTrackHandler(): void { if (PlaybackManager.hasNextItem()) { - PlaybackManager.playNextItem({}, true); + PlaybackManager.playNextItem(true); } } static previousTrackHandler(): void { if (PlaybackManager.hasPrevItem()) { - PlaybackManager.playPreviousItem({}); + PlaybackManager.playPreviousItem(); } } diff --git a/src/components/playbackManager.ts b/src/components/playbackManager.ts index 8588d35d..9532697d 100644 --- a/src/components/playbackManager.ts +++ b/src/components/playbackManager.ts @@ -150,13 +150,12 @@ export abstract class PlaybackManager { return this.activePlaylistIndex > 0; } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - static playNextItem(options: any = {}, stopPlayer = false): boolean { + static playNextItem(stopPlayer = false): boolean { const nextItemInfo = this.getNextPlaybackItemInfo(); if (nextItemInfo) { this.activePlaylistIndex = nextItemInfo.index; - this.playItem(options, stopPlayer); + this.playItem({}, stopPlayer); return true; } @@ -164,11 +163,10 @@ export abstract class PlaybackManager { return false; } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - static playPreviousItem(options: any = {}): boolean { + static playPreviousItem(): boolean { if (this.activePlaylist && this.activePlaylistIndex > 0) { this.activePlaylistIndex--; - this.playItem(options, true); + this.playItem({}, true); return true; }