From 6484f2120e22fe6ad18f82acebafb0e4d9de5aa2 Mon Sep 17 00:00:00 2001 From: Brian Bicknell Date: Fri, 31 Jul 2026 08:58:34 -0400 Subject: [PATCH] Removed unused code. --- Harmonia.Core/Playlists/PlaylistRepository.cs | 45 ------------------- 1 file changed, 45 deletions(-) diff --git a/Harmonia.Core/Playlists/PlaylistRepository.cs b/Harmonia.Core/Playlists/PlaylistRepository.cs index 800ce37..e2735df 100644 --- a/Harmonia.Core/Playlists/PlaylistRepository.cs +++ b/Harmonia.Core/Playlists/PlaylistRepository.cs @@ -6,27 +6,6 @@ public class PlaylistRepository : JsonFileRepository, IPlaylistReposit { protected override string DirectoryName => Path.Combine("Playlists"); - //public PlaylistRepository() - //{ - // List playlists = Get(); - - // foreach (Playlist playlist in playlists) - // { - // playlist.PlaylistUpdated += OnPlaylistUpdated; - // } - - // if (playlists.Count == 0) - // AddPlaylist(); - //} - - //private void OnPlaylistUpdated(object? sender, PlaylistUpdatedEventArgs e) - //{ - // if (sender is not Playlist playlist) - // return; - - // Save(playlist); - //} - public Playlist? GetPlaylist(PlaylistSong playlistSong) { return Get().FirstOrDefault(playlist => playlist.Songs.Contains(playlistSong)); @@ -45,28 +24,4 @@ public class PlaylistRepository : JsonFileRepository, IPlaylistReposit throw new Exception("Unable to determine new fileName"); } - - //public event EventHandler? PlaylistAdded; - //public event EventHandler? PlaylistRemoved; - - //public void AddPlaylist() - //{ - // Playlist playlist = new() - // { - // Name = "New Playlist" - // }; - - // playlist.PlaylistUpdated += OnPlaylistUpdated; - - // Save(playlist); - // PlaylistAdded?.Invoke(this, new(playlist)); - //} - - //public void RemovePlaylist(Playlist playlist) - //{ - // playlist.PlaylistUpdated -= OnPlaylistUpdated; - - // Delete(playlist); - // PlaylistRemoved?.Invoke(this, new(playlist)); - //} } \ No newline at end of file