Minor updates to clear off minor informational messages.

This commit is contained in:
2025-02-27 22:01:27 -05:00
parent e8f61da6f8
commit 9ddf504575
2 changed files with 7 additions and 7 deletions

View File

@@ -43,13 +43,13 @@ public abstract class AudioLibrary : IAudioLibrary
public void RemoveLocations(string[] paths) public void RemoveLocations(string[] paths)
{ {
foreach (string path in paths) //foreach (string path in paths)
{ //{
//if (_locations.Contains(path) == false) // //if (_locations.Contains(path) == false)
// continue; // // continue;
} //}
LocationRemoved?.Invoke(this, new EventArgs()); LocationRemoved?.Invoke(this, new EventArgs());
} }

View File

@@ -21,7 +21,7 @@ public class Playlist
public void AddSongs(Song[] songs, int? index = null) public void AddSongs(Song[] songs, int? index = null)
{ {
PlaylistSong[] playlistSongs = songs.Select(song => new PlaylistSong(song)).ToArray(); PlaylistSong[] playlistSongs = [.. songs.Select(song => new PlaylistSong(song))];
AddSongs(playlistSongs, index); AddSongs(playlistSongs, index);
} }
@@ -84,7 +84,7 @@ public class Playlist
.OrderBy(Songs.IndexOf) .OrderBy(Songs.IndexOf)
.ToDictionary(Songs.IndexOf, playlistSong => playlistSong); .ToDictionary(Songs.IndexOf, playlistSong => playlistSong);
Song[] songs = playlistSongs.Select(playlistSong => playlistSong.Song).ToArray(); Song[] songs = [.. playlistSongs.Select(playlistSong => playlistSong.Song)];
Song[] sortedSongs = [.. songs.SortBy(sortOptions)]; Song[] sortedSongs = [.. songs.SortBy(sortOptions)];
int currentSortIndex = 0; int currentSortIndex = 0;