diff --git a/MusicX/App.xaml.cs b/MusicX/App.xaml.cs index 5e22682a..3c31e32c 100644 --- a/MusicX/App.xaml.cs +++ b/MusicX/App.xaml.cs @@ -1,9 +1,5 @@ -using System.Collections.Generic; -using System.Threading; +using System.Threading; using System.Windows; -using Microsoft.AppCenter; -using Microsoft.AppCenter.Analytics; -using Microsoft.AppCenter.Crashes; using MusicX.Patches; using MusicX.Services; using MusicX.Views; diff --git a/MusicX/Controls/ActionButtonControl.xaml.cs b/MusicX/Controls/ActionButtonControl.xaml.cs index 97f3ed1e..19c7b77e 100644 --- a/MusicX/Controls/ActionButtonControl.xaml.cs +++ b/MusicX/Controls/ActionButtonControl.xaml.cs @@ -1,21 +1,8 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; +using System.Windows; using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; using MusicX.Core.Models; using MusicX.ViewModels; using MusicX.ViewModels.Controls; -using Block = MusicX.Core.Models.Block; using Button = MusicX.Core.Models.Button; namespace MusicX.Controls; diff --git a/MusicX/Controls/BannerControl.xaml.cs b/MusicX/Controls/BannerControl.xaml.cs index bb61c2f3..3f7bb721 100644 --- a/MusicX/Controls/BannerControl.xaml.cs +++ b/MusicX/Controls/BannerControl.xaml.cs @@ -8,8 +8,6 @@ using System.Windows.Controls; using System.Windows.Media.Imaging; using Microsoft.Extensions.DependencyInjection; -using System.Collections.Generic; -using Microsoft.AppCenter.Crashes; namespace MusicX.Controls { diff --git a/MusicX/Controls/BigBannerControl.xaml.cs b/MusicX/Controls/BigBannerControl.xaml.cs index 67c404fd..8b68eaf0 100644 --- a/MusicX/Controls/BigBannerControl.xaml.cs +++ b/MusicX/Controls/BigBannerControl.xaml.cs @@ -12,7 +12,6 @@ using System.Windows.Media.Animation; using System.Windows.Media.Imaging; using Microsoft.Extensions.DependencyInjection; -using Microsoft.AppCenter.Crashes; namespace MusicX.Controls { diff --git a/MusicX/Controls/BlockControl.xaml.cs b/MusicX/Controls/BlockControl.xaml.cs index fe62fd5a..c3149de4 100644 --- a/MusicX/Controls/BlockControl.xaml.cs +++ b/MusicX/Controls/BlockControl.xaml.cs @@ -1,21 +1,9 @@ -using System.Collections.Generic; -using System.Linq; -using System.Windows; +using System.Windows; using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Data; -using System.Windows.Media; -using System.Windows.Shapes; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; -using MusicX.Controls.Blocks; using MusicX.Core.Models; using MusicX.Services; -using MusicX.ViewModels.Controls; -using Wpf.Ui.Controls; -using Button = MusicX.Core.Models.Button; using NavigationService = MusicX.Services.NavigationService; -using TextBlock = System.Windows.Controls.TextBlock; namespace MusicX.Controls { diff --git a/MusicX/Controls/Blocks/ArtistBannerBlockControl.xaml.cs b/MusicX/Controls/Blocks/ArtistBannerBlockControl.xaml.cs index 07f4d370..1ff9c8d6 100644 --- a/MusicX/Controls/Blocks/ArtistBannerBlockControl.xaml.cs +++ b/MusicX/Controls/Blocks/ArtistBannerBlockControl.xaml.cs @@ -6,7 +6,6 @@ using System.Windows.Data; using System.Windows.Media.Animation; using System.Windows.Media.Imaging; -using MusicX.Core.Models; using MusicX.Helpers; using MusicX.ViewModels; using MusicX.ViewModels.Controls; diff --git a/MusicX/Controls/Blocks/CuratorBannerBlockControl.xaml.cs b/MusicX/Controls/Blocks/CuratorBannerBlockControl.xaml.cs index 2e8d4206..ee41fc32 100644 --- a/MusicX/Controls/Blocks/CuratorBannerBlockControl.xaml.cs +++ b/MusicX/Controls/Blocks/CuratorBannerBlockControl.xaml.cs @@ -3,7 +3,6 @@ using System.Windows; using System.Windows.Controls; using System.Windows.Media.Imaging; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Models; using MusicX.Core.Services; diff --git a/MusicX/Controls/Blocks/GroupsBlockControl.xaml.cs b/MusicX/Controls/Blocks/GroupsBlockControl.xaml.cs index 14320ba7..839e256f 100644 --- a/MusicX/Controls/Blocks/GroupsBlockControl.xaml.cs +++ b/MusicX/Controls/Blocks/GroupsBlockControl.xaml.cs @@ -1,16 +1,11 @@ -using MusicX.Core.Models; -using MusicX.Services; +using MusicX.Services; using NLog; using System; using System.Diagnostics; using System.Windows; using System.Windows.Controls; -using System.Windows.Media.Imaging; using Microsoft.Extensions.DependencyInjection; -using System.Collections.Generic; -using System.Linq; -using Microsoft.AppCenter.Crashes; -using MusicX.ViewModels; +using MusicX.Core.Models; namespace MusicX.Controls.Blocks { @@ -47,7 +42,7 @@ private void Button_Click(object sender, RoutedEventArgs e) { var logger = StaticService.Container.GetRequiredService(); - logger.Error(ex, "Failed to open group {GroupName}", block.Groups.FirstOrDefault()?.ScreenName); + logger.Error(ex, "Failed to open group {GroupName}", Group?.ScreenName); } } } diff --git a/MusicX/Controls/Blocks/LinksNewsfeedBlockControl.xaml.cs b/MusicX/Controls/Blocks/LinksNewsfeedBlockControl.xaml.cs index e6ba2129..62c31b27 100644 --- a/MusicX/Controls/Blocks/LinksNewsfeedBlockControl.xaml.cs +++ b/MusicX/Controls/Blocks/LinksNewsfeedBlockControl.xaml.cs @@ -5,7 +5,6 @@ using System.Text.RegularExpressions; using System.Windows; using System.Windows.Controls; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Models; using MusicX.Core.Services; diff --git a/MusicX/Controls/Blocks/MusicCategoryBlockControl.xaml.cs b/MusicX/Controls/Blocks/MusicCategoryBlockControl.xaml.cs index c95c6751..228873a0 100644 --- a/MusicX/Controls/Blocks/MusicCategoryBlockControl.xaml.cs +++ b/MusicX/Controls/Blocks/MusicCategoryBlockControl.xaml.cs @@ -8,7 +8,6 @@ using Microsoft.Extensions.DependencyInjection; using System; using System.Windows.Media; -using Microsoft.AppCenter.Crashes; using MusicX.ViewModels; using NLog; using Wpf.Ui.Appearance; diff --git a/MusicX/Controls/Blocks/MusicOwnerCellBlockControl.xaml.cs b/MusicX/Controls/Blocks/MusicOwnerCellBlockControl.xaml.cs index 8d639ee3..be63c2cc 100644 --- a/MusicX/Controls/Blocks/MusicOwnerCellBlockControl.xaml.cs +++ b/MusicX/Controls/Blocks/MusicOwnerCellBlockControl.xaml.cs @@ -1,9 +1,7 @@ using System; -using System.Collections.Generic; using System.Diagnostics; using System.Windows; using System.Windows.Controls; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Models; using MusicX.Services; diff --git a/MusicX/Controls/Blocks/PlaceholderBlockControl.xaml.cs b/MusicX/Controls/Blocks/PlaceholderBlockControl.xaml.cs index f6bb96bb..e1b339a9 100644 --- a/MusicX/Controls/Blocks/PlaceholderBlockControl.xaml.cs +++ b/MusicX/Controls/Blocks/PlaceholderBlockControl.xaml.cs @@ -1,13 +1,10 @@ using System; -using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Media.Imaging; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; -using MusicX.Core.Models; using MusicX.Core.Services; using MusicX.Helpers; using MusicX.Services; diff --git a/MusicX/Controls/Blocks/SearchSuggestionsBlockControl.xaml.cs b/MusicX/Controls/Blocks/SearchSuggestionsBlockControl.xaml.cs index ad5d884d..db7630a8 100644 --- a/MusicX/Controls/Blocks/SearchSuggestionsBlockControl.xaml.cs +++ b/MusicX/Controls/Blocks/SearchSuggestionsBlockControl.xaml.cs @@ -1,6 +1,4 @@ -using MusicX.Core.Models; -using System.Windows; -using System.Windows.Controls; +using System.Windows.Controls; namespace MusicX.Controls.Blocks { diff --git a/MusicX/Controls/Blocks/TextsBlockControl.xaml.cs b/MusicX/Controls/Blocks/TextsBlockControl.xaml.cs index f95e5c1c..34cf76b9 100644 --- a/MusicX/Controls/Blocks/TextsBlockControl.xaml.cs +++ b/MusicX/Controls/Blocks/TextsBlockControl.xaml.cs @@ -1,5 +1,4 @@ -using MusicX.Core.Models; -using System.Windows; +using System.Windows; using System.Windows.Controls; using MusicX.ViewModels; diff --git a/MusicX/Controls/Blocks/TitleBlockControl.xaml.cs b/MusicX/Controls/Blocks/TitleBlockControl.xaml.cs index 73f07afa..e6e2f806 100644 --- a/MusicX/Controls/Blocks/TitleBlockControl.xaml.cs +++ b/MusicX/Controls/Blocks/TitleBlockControl.xaml.cs @@ -1,12 +1,9 @@ -using MusicX.Core.Models; -using MusicX.Services; +using MusicX.Services; using NLog; using System; using System.Windows; using System.Windows.Controls; using Microsoft.Extensions.DependencyInjection; -using System.Collections.Generic; -using Microsoft.AppCenter.Crashes; using MusicX.ViewModels; namespace MusicX.Controls.Blocks diff --git a/MusicX/Controls/Blocks/UserRadioBlockControl.xaml.cs b/MusicX/Controls/Blocks/UserRadioBlockControl.xaml.cs index 986c7d5f..41b61267 100644 --- a/MusicX/Controls/Blocks/UserRadioBlockControl.xaml.cs +++ b/MusicX/Controls/Blocks/UserRadioBlockControl.xaml.cs @@ -1,10 +1,7 @@ using Microsoft.Extensions.DependencyInjection; -using MusicX.Core.Models; using MusicX.Services; -using MusicX.Shared.ListenTogether.Radio; using MusicX.ViewModels; using MusicX.Views; -using System.Collections.Generic; using System.Windows; using System.Windows.Controls; diff --git a/MusicX/Controls/Boom/ArtistControl.xaml.cs b/MusicX/Controls/Boom/ArtistControl.xaml.cs index 85a06b10..0a0dac93 100644 --- a/MusicX/Controls/Boom/ArtistControl.xaml.cs +++ b/MusicX/Controls/Boom/ArtistControl.xaml.cs @@ -1,8 +1,6 @@ -using Microsoft.AppCenter.Crashes; -using MusicX.Core.Models.Boom; +using MusicX.Core.Models.Boom; using MusicX.Services; using System; -using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using System.Windows.Media; diff --git a/MusicX/Controls/Boom/TagControl.xaml.cs b/MusicX/Controls/Boom/TagControl.xaml.cs index 6cba9b94..71223f1e 100644 --- a/MusicX/Controls/Boom/TagControl.xaml.cs +++ b/MusicX/Controls/Boom/TagControl.xaml.cs @@ -1,8 +1,6 @@ -using Microsoft.AppCenter.Crashes; -using MusicX.Core.Models.Boom; +using MusicX.Core.Models.Boom; using MusicX.Services; using System; -using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using System.Windows.Media; diff --git a/MusicX/Controls/CroppedPlaylistControl.xaml.cs b/MusicX/Controls/CroppedPlaylistControl.xaml.cs index 33a2bfd4..ca029a8c 100644 --- a/MusicX/Controls/CroppedPlaylistControl.xaml.cs +++ b/MusicX/Controls/CroppedPlaylistControl.xaml.cs @@ -1,14 +1,10 @@ -using Microsoft.AppCenter.Analytics; -using Microsoft.AppCenter.Crashes; -using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Models; using MusicX.Core.Services; using MusicX.Services; using MusicX.Services.Player.Playlists; using MusicX.Services.Player; using MusicX.Views; -using System.Collections.Generic; -using System.ComponentModel; using System.Windows; using System.Windows.Controls; using Wpf.Ui.Controls; diff --git a/MusicX/Controls/DynamicUniformGrid.cs b/MusicX/Controls/DynamicUniformGrid.cs index de9fdde5..5c8bb443 100644 --- a/MusicX/Controls/DynamicUniformGrid.cs +++ b/MusicX/Controls/DynamicUniformGrid.cs @@ -1,7 +1,6 @@ using System; using System.Windows; using System.Windows.Controls; -using System.Windows.Controls.Primitives; namespace MusicX.Controls; diff --git a/MusicX/Controls/LinkControl.xaml.cs b/MusicX/Controls/LinkControl.xaml.cs index 7fd1506a..fdb4fbb2 100644 --- a/MusicX/Controls/LinkControl.xaml.cs +++ b/MusicX/Controls/LinkControl.xaml.cs @@ -1,12 +1,10 @@ using System; -using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text.RegularExpressions; using System.Windows; using System.Windows.Controls; using System.Windows.Media.Imaging; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Models; using MusicX.Core.Services; diff --git a/MusicX/Controls/ListBanners.xaml.cs b/MusicX/Controls/ListBanners.xaml.cs index 0880243e..cda16db0 100644 --- a/MusicX/Controls/ListBanners.xaml.cs +++ b/MusicX/Controls/ListBanners.xaml.cs @@ -6,7 +6,6 @@ using System.Windows; using System.Windows.Controls; using Microsoft.Extensions.DependencyInjection; -using Microsoft.AppCenter.Crashes; namespace MusicX.Controls { diff --git a/MusicX/Controls/ListTracks.xaml.cs b/MusicX/Controls/ListTracks.xaml.cs index fb8532f7..c2bd9e99 100644 --- a/MusicX/Controls/ListTracks.xaml.cs +++ b/MusicX/Controls/ListTracks.xaml.cs @@ -1,13 +1,8 @@ using MusicX.Core.Models; -using MusicX.Services; -using NLog; using System; using System.Collections.Generic; -using System.Linq; using System.Windows; using System.Windows.Controls; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.AppCenter.Crashes; namespace MusicX.Controls { diff --git a/MusicX/Controls/LyricsControl.xaml.cs b/MusicX/Controls/LyricsControl.xaml.cs index 12d18d10..cce87a13 100644 --- a/MusicX/Controls/LyricsControl.xaml.cs +++ b/MusicX/Controls/LyricsControl.xaml.cs @@ -1,5 +1,4 @@ -using Microsoft.AppCenter.Analytics; -using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Models; using MusicX.Services; using MusicX.Services.Player; @@ -8,7 +7,6 @@ using System.Linq; using System.Windows; using System.Windows.Controls; -using System.Windows.Data; using System.Windows.Input; namespace MusicX.Controls diff --git a/MusicX/Controls/PlayerControl.xaml.cs b/MusicX/Controls/PlayerControl.xaml.cs index 09ebe2de..3eea9ce1 100644 --- a/MusicX/Controls/PlayerControl.xaml.cs +++ b/MusicX/Controls/PlayerControl.xaml.cs @@ -1,17 +1,14 @@ using System; using System.Collections; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; -using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media.Animation; using System.Windows.Media.Imaging; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; using MusicX.Behaviors; using MusicX.Core.Services; @@ -27,7 +24,6 @@ using MusicX.Views; using MusicX.Views.Modals; using NLog; -using ProtoBuf.Meta; using Wpf.Ui; using Wpf.Ui.Controls; using Wpf.Ui.Extensions; diff --git a/MusicX/Controls/PlaylistControl.xaml.cs b/MusicX/Controls/PlaylistControl.xaml.cs index 4d3a013c..1a0afb60 100644 --- a/MusicX/Controls/PlaylistControl.xaml.cs +++ b/MusicX/Controls/PlaylistControl.xaml.cs @@ -1,12 +1,9 @@ using System; -using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media.Animation; using System.Windows.Media.Imaging; -using Microsoft.AppCenter.Analytics; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Models; using MusicX.Core.Services; diff --git a/MusicX/Controls/RecommendedPlaylistControl.xaml.cs b/MusicX/Controls/RecommendedPlaylistControl.xaml.cs index bb258da6..8f0b3414 100644 --- a/MusicX/Controls/RecommendedPlaylistControl.xaml.cs +++ b/MusicX/Controls/RecommendedPlaylistControl.xaml.cs @@ -3,7 +3,6 @@ using MusicX.Views; using NLog; using System; -using System.Diagnostics; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; @@ -14,9 +13,6 @@ using MusicX.Core.Services; using MusicX.Services.Player; using MusicX.Services.Player.Playlists; -using System.Collections.Generic; -using Microsoft.AppCenter.Analytics; -using Microsoft.AppCenter.Crashes; using Wpf.Ui.Controls; using System.Globalization; diff --git a/MusicX/Controls/RecommsPlaylist.xaml.cs b/MusicX/Controls/RecommsPlaylist.xaml.cs index 99477871..6fc8bac9 100644 --- a/MusicX/Controls/RecommsPlaylist.xaml.cs +++ b/MusicX/Controls/RecommsPlaylist.xaml.cs @@ -1,9 +1,7 @@ using System; -using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using System.Windows.Input; -using Microsoft.AppCenter.Analytics; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Models; using MusicX.Core.Services; diff --git a/MusicX/Controls/SuggestionControl.xaml.cs b/MusicX/Controls/SuggestionControl.xaml.cs index 6e751cf8..4f1a1794 100644 --- a/MusicX/Controls/SuggestionControl.xaml.cs +++ b/MusicX/Controls/SuggestionControl.xaml.cs @@ -8,8 +8,6 @@ using System.Windows.Input; using System.Windows.Media.Animation; using Microsoft.Extensions.DependencyInjection; -using System.Collections.Generic; -using Microsoft.AppCenter.Crashes; namespace MusicX.Controls { diff --git a/MusicX/Controls/TrackControl.xaml.cs b/MusicX/Controls/TrackControl.xaml.cs index 78504ef2..a3606421 100644 --- a/MusicX/Controls/TrackControl.xaml.cs +++ b/MusicX/Controls/TrackControl.xaml.cs @@ -3,14 +3,9 @@ using System.Collections.Immutable; using System.IO; using System.Linq; -using System.Net.Cache; using System.Windows; using System.Windows.Controls; using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using Microsoft.AppCenter.Analytics; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Models; using MusicX.Core.Services; diff --git a/MusicX/Controls/UserStationControl.xaml.cs b/MusicX/Controls/UserStationControl.xaml.cs index 7fe3fea6..d3f97225 100644 --- a/MusicX/Controls/UserStationControl.xaml.cs +++ b/MusicX/Controls/UserStationControl.xaml.cs @@ -4,19 +4,10 @@ using MusicX.Shared.ListenTogether.Radio; using NLog; using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; using System.Windows.Input; -using System.Windows.Media; using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; using MusicX.Helpers; using Wpf.Ui; diff --git a/MusicX/Converters/CountToVisibillityConverter.cs b/MusicX/Converters/CountToVisibillityConverter.cs index 4e25747b..aea4403c 100644 --- a/MusicX/Converters/CountToVisibillityConverter.cs +++ b/MusicX/Converters/CountToVisibillityConverter.cs @@ -1,9 +1,5 @@ using System; -using System.Collections.Generic; using System.Globalization; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using System.Windows; using System.Windows.Data; diff --git a/MusicX/Helpers/BlockTemplateSelector.cs b/MusicX/Helpers/BlockTemplateSelector.cs index 14433d96..85e16c05 100644 --- a/MusicX/Helpers/BlockTemplateSelector.cs +++ b/MusicX/Helpers/BlockTemplateSelector.cs @@ -1,5 +1,4 @@ using MusicX.Controls; -using MusicX.Core.Models; using System; using System.Windows; using System.Windows.Controls; diff --git a/MusicX/Helpers/Dwm.cs b/MusicX/Helpers/Dwm.cs index b87c221f..e1f75f10 100644 --- a/MusicX/Helpers/Dwm.cs +++ b/MusicX/Helpers/Dwm.cs @@ -1,5 +1,4 @@ using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Windows; using System.Windows.Interop; using Windows.Win32; diff --git a/MusicX/RootWindow.xaml.cs b/MusicX/RootWindow.xaml.cs index 912c7214..7c7de55e 100644 --- a/MusicX/RootWindow.xaml.cs +++ b/MusicX/RootWindow.xaml.cs @@ -8,8 +8,6 @@ using System.Windows.Input; using System.Windows.Media.Animation; using AsyncAwaitBestPractices; -using Microsoft.AppCenter.Analytics; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; using Microsoft.Toolkit.Uwp.Notifications; using MusicX.Controls; @@ -20,12 +18,9 @@ using MusicX.Services.Player; using MusicX.Shared.Player; using MusicX.ViewModels; -using MusicX.ViewModels.Modals; using MusicX.Views; using MusicX.Views.Modals; using NLog; -using Velopack; -using Velopack.Sources; using Wpf.Ui; using Wpf.Ui.Controls; using Wpf.Ui.Extensions; diff --git a/MusicX/Services/DownloaderService.cs b/MusicX/Services/DownloaderService.cs index 6d52b220..c643920f 100644 --- a/MusicX/Services/DownloaderService.cs +++ b/MusicX/Services/DownloaderService.cs @@ -9,9 +9,6 @@ using Windows.Media.Transcoding; using Windows.Storage; using FFMediaToolkit; -using FFMediaToolkit.Audio; -using FFMediaToolkit.Decoding; -using FFmpegInteropX; using MusicX.Core.Services; using MusicX.Helpers; using MusicX.Services.Player.Playlists; diff --git a/MusicX/Services/Player/PlayerService.cs b/MusicX/Services/Player/PlayerService.cs index 0b02afb5..52b35039 100644 --- a/MusicX/Services/Player/PlayerService.cs +++ b/MusicX/Services/Player/PlayerService.cs @@ -10,7 +10,6 @@ using Windows.Media.Playback; using Windows.Storage.Streams; using AsyncAwaitBestPractices; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Models; using MusicX.Core.Services; diff --git a/MusicX/Services/Player/PlayerState.cs b/MusicX/Services/Player/PlayerState.cs index 887a5584..9faf51ac 100644 --- a/MusicX/Services/Player/PlayerState.cs +++ b/MusicX/Services/Player/PlayerState.cs @@ -1,6 +1,5 @@ using System; using MusicX.Services.Player.Playlists; -using MusicX.Shared.Player; namespace MusicX.Services.Player; diff --git a/MusicX/Services/Player/Sources/BoomMediaSource.cs b/MusicX/Services/Player/Sources/BoomMediaSource.cs index 301ff6ed..2c5ef7ba 100644 --- a/MusicX/Services/Player/Sources/BoomMediaSource.cs +++ b/MusicX/Services/Player/Sources/BoomMediaSource.cs @@ -5,7 +5,6 @@ using System.Threading.Tasks; using Windows.Media.Core; using Windows.Media.Playback; -using FFmpegInteropX; using MusicX.Core.Services; using MusicX.Shared.Player; using NLog; diff --git a/MusicX/Services/Player/Sources/MediaSourceBase.cs b/MusicX/Services/Player/Sources/MediaSourceBase.cs index 77036f4a..c8306c0a 100644 --- a/MusicX/Services/Player/Sources/MediaSourceBase.cs +++ b/MusicX/Services/Player/Sources/MediaSourceBase.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.WindowsRuntime; @@ -14,7 +13,6 @@ using FFMediaToolkit.Audio; using FFMediaToolkit.Decoding; using FFmpegInteropX; -using MusicX.Helpers; using MusicX.Shared.Player; using WinRT; diff --git a/MusicX/Services/Player/Sources/VkMediaSource.cs b/MusicX/Services/Player/Sources/VkMediaSource.cs index 883da5dd..74bc94b2 100644 --- a/MusicX/Services/Player/Sources/VkMediaSource.cs +++ b/MusicX/Services/Player/Sources/VkMediaSource.cs @@ -5,7 +5,6 @@ using FFMediaToolkit.Decoding; using MusicX.Shared.Player; using NLog; -using WinRT; namespace MusicX.Services.Player.Sources; diff --git a/MusicX/Services/Player/TrackStats/VkTrackBroadcastStats.cs b/MusicX/Services/Player/TrackStats/VkTrackBroadcastStats.cs index 98e55bb9..0d95bb96 100644 --- a/MusicX/Services/Player/TrackStats/VkTrackBroadcastStats.cs +++ b/MusicX/Services/Player/TrackStats/VkTrackBroadcastStats.cs @@ -1,7 +1,5 @@ using System; -using System.Collections.Generic; using System.Threading.Tasks; -using Microsoft.AppCenter.Crashes; using MusicX.Core.Services; using MusicX.Helpers; using MusicX.Models.Enums; diff --git a/MusicX/Shaders/MixNoiseEffect.cs b/MusicX/Shaders/MixNoiseEffect.cs index 0b57f1e6..35a66bee 100644 --- a/MusicX/Shaders/MixNoiseEffect.cs +++ b/MusicX/Shaders/MixNoiseEffect.cs @@ -1,6 +1,5 @@ using System; using System.Windows; -using System.Windows.Media; using System.Windows.Media.Effects; using System.Windows.Threading; diff --git a/MusicX/ViewModels/BoomProfileViewModel.cs b/MusicX/ViewModels/BoomProfileViewModel.cs index ee8641a4..c57d2fb0 100644 --- a/MusicX/ViewModels/BoomProfileViewModel.cs +++ b/MusicX/ViewModels/BoomProfileViewModel.cs @@ -1,9 +1,6 @@ using System; -using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using Microsoft.AppCenter.Analytics; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Exceptions.Boom; using MusicX.Core.Models.Boom; diff --git a/MusicX/ViewModels/BoomViewModelBase.cs b/MusicX/ViewModels/BoomViewModelBase.cs index ad31dfac..7f552725 100644 --- a/MusicX/ViewModels/BoomViewModelBase.cs +++ b/MusicX/ViewModels/BoomViewModelBase.cs @@ -1,8 +1,5 @@ using System; -using System.Collections.Generic; using System.Threading.Tasks; -using Microsoft.AppCenter.Analytics; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Exceptions.Boom; using MusicX.Core.Models.Boom; diff --git a/MusicX/ViewModels/Controls/ListenTogetherControlViewModel.cs b/MusicX/ViewModels/Controls/ListenTogetherControlViewModel.cs index 1eff93cf..afab26b1 100644 --- a/MusicX/ViewModels/Controls/ListenTogetherControlViewModel.cs +++ b/MusicX/ViewModels/Controls/ListenTogetherControlViewModel.cs @@ -1,11 +1,9 @@ using System; -using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows; using System.Windows.Input; using AsyncAwaitBestPractices.MVVM; -using Microsoft.AppCenter.Analytics; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Services; using MusicX.Helpers; diff --git a/MusicX/ViewModels/DownloaderViewModel.cs b/MusicX/ViewModels/DownloaderViewModel.cs index e0757d4a..41cf5082 100644 --- a/MusicX/ViewModels/DownloaderViewModel.cs +++ b/MusicX/ViewModels/DownloaderViewModel.cs @@ -10,8 +10,6 @@ using System.Windows; using System.Windows.Input; using AsyncAwaitBestPractices.MVVM; -using Microsoft.AppCenter.Analytics; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Models; using MusicX.Core.Services; diff --git a/MusicX/ViewModels/Login/AccountsWindowViewModel.cs b/MusicX/ViewModels/Login/AccountsWindowViewModel.cs index 8938feb8..dda9af91 100644 --- a/MusicX/ViewModels/Login/AccountsWindowViewModel.cs +++ b/MusicX/ViewModels/Login/AccountsWindowViewModel.cs @@ -1,7 +1,6 @@ using System; using System.Diagnostics; using System.Linq; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.Marshalling; using System.Text; @@ -32,7 +31,6 @@ using VkNet.AudioBypassService.Abstractions.Categories; using VkNet.AudioBypassService.Models.Auth; using VkNet.AudioBypassService.Models.Ecosystem; -using VkNet.Enums.SafetyEnums; using Wpf.Ui; using Wpf.Ui.Common; using IAuthCategory = VkNet.AudioBypassService.Abstractions.Categories.IAuthCategory; diff --git a/MusicX/ViewModels/Modals/AvailableNewUpdateModalViewModel.cs b/MusicX/ViewModels/Modals/AvailableNewUpdateModalViewModel.cs index 3c7b9186..72f3c01e 100644 --- a/MusicX/ViewModels/Modals/AvailableNewUpdateModalViewModel.cs +++ b/MusicX/ViewModels/Modals/AvailableNewUpdateModalViewModel.cs @@ -1,11 +1,8 @@ using System; -using System.Collections.Generic; -using System.Text.Json; using System.Threading.Tasks; using System.Windows; using System.Windows.Input; using AsyncAwaitBestPractices.MVVM; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; using MusicX.Helpers; using MusicX.Services; diff --git a/MusicX/ViewModels/Modals/CreatePlaylistModalViewModel.cs b/MusicX/ViewModels/Modals/CreatePlaylistModalViewModel.cs index 8559d402..da23a9da 100644 --- a/MusicX/ViewModels/Modals/CreatePlaylistModalViewModel.cs +++ b/MusicX/ViewModels/Modals/CreatePlaylistModalViewModel.cs @@ -1,11 +1,9 @@ using System; using System.Collections; -using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Input; using AsyncAwaitBestPractices.MVVM; -using Microsoft.AppCenter.Crashes; using Microsoft.Win32; using MusicX.Core.Models; using MusicX.Core.Services; diff --git a/MusicX/ViewModels/Modals/CreateUserRadioModalViewModel.cs b/MusicX/ViewModels/Modals/CreateUserRadioModalViewModel.cs index 07512ac9..f84deb1a 100644 --- a/MusicX/ViewModels/Modals/CreateUserRadioModalViewModel.cs +++ b/MusicX/ViewModels/Modals/CreateUserRadioModalViewModel.cs @@ -7,7 +7,6 @@ using NLog; using System; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Windows.Input; using MusicX.Helpers; diff --git a/MusicX/ViewModels/Modals/ListenTogetherSessionStartedModalViewModel.cs b/MusicX/ViewModels/Modals/ListenTogetherSessionStartedModalViewModel.cs index ffc6da59..88c10e57 100644 --- a/MusicX/ViewModels/Modals/ListenTogetherSessionStartedModalViewModel.cs +++ b/MusicX/ViewModels/Modals/ListenTogetherSessionStartedModalViewModel.cs @@ -2,7 +2,6 @@ using System.Windows.Input; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Services; -using MusicX.Helpers; using MusicX.Services; using Wpf.Ui; using Wpf.Ui.Common; diff --git a/MusicX/ViewModels/Modals/LyricsViewModel.cs b/MusicX/ViewModels/Modals/LyricsViewModel.cs index 87519cad..b1f0e735 100644 --- a/MusicX/ViewModels/Modals/LyricsViewModel.cs +++ b/MusicX/ViewModels/Modals/LyricsViewModel.cs @@ -3,13 +3,10 @@ using System.Linq; using System.Threading.Tasks; using System.Windows.Threading; -using Microsoft.AppCenter.Crashes; using MusicX.Core.Models; using MusicX.Core.Services; using MusicX.Helpers; -using MusicX.Services; using MusicX.Services.Player; -using MusicX.Services.Player.Playlists; using MusicX.Shared.Player; using NLog; using Wpf.Ui; diff --git a/MusicX/ViewModels/Modals/PlaylistSelectorModalViewModel.cs b/MusicX/ViewModels/Modals/PlaylistSelectorModalViewModel.cs index 0caef6c5..5ba01feb 100644 --- a/MusicX/ViewModels/Modals/PlaylistSelectorModalViewModel.cs +++ b/MusicX/ViewModels/Modals/PlaylistSelectorModalViewModel.cs @@ -1,9 +1,7 @@ -using Microsoft.AppCenter.Crashes; -using MusicX.Core.Models; +using MusicX.Core.Models; using MusicX.Core.Services; using MusicX.Services; using System; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Threading.Tasks; diff --git a/MusicX/ViewModels/Modals/TracksSelectorModalViewModel.cs b/MusicX/ViewModels/Modals/TracksSelectorModalViewModel.cs index 2c4ded95..8a42544c 100644 --- a/MusicX/ViewModels/Modals/TracksSelectorModalViewModel.cs +++ b/MusicX/ViewModels/Modals/TracksSelectorModalViewModel.cs @@ -4,11 +4,9 @@ using System.Collections.ObjectModel; using System.Threading.Tasks; using System.Windows.Input; -using Microsoft.AppCenter.Crashes; using MusicX.Core.Models; using MusicX.Core.Services; using MusicX.Helpers; -using MusicX.Services; using NLog; using Wpf.Ui; using Wpf.Ui.Common; diff --git a/MusicX/ViewModels/PlaylistViewModel.cs b/MusicX/ViewModels/PlaylistViewModel.cs index d40584de..d389d60a 100644 --- a/MusicX/ViewModels/PlaylistViewModel.cs +++ b/MusicX/ViewModels/PlaylistViewModel.cs @@ -1,8 +1,6 @@ using System; -using System.Collections.Generic; using System.Threading.Tasks; using System.Windows; -using Microsoft.AppCenter.Crashes; using MusicX.Core.Models; using MusicX.Core.Services; using MusicX.Helpers; diff --git a/MusicX/ViewModels/SectionViewModel.cs b/MusicX/ViewModels/SectionViewModel.cs index cc201230..3494bdd2 100644 --- a/MusicX/ViewModels/SectionViewModel.cs +++ b/MusicX/ViewModels/SectionViewModel.cs @@ -4,7 +4,6 @@ using System.Threading.Tasks; using System.Windows; using AsyncAwaitBestPractices; -using Microsoft.AppCenter.Crashes; using MusicX.Controls; using MusicX.Core.Models; using MusicX.Core.Services; diff --git a/MusicX/ViewModels/UserRadioViewModel.cs b/MusicX/ViewModels/UserRadioViewModel.cs index 0b583864..62e3e720 100644 --- a/MusicX/ViewModels/UserRadioViewModel.cs +++ b/MusicX/ViewModels/UserRadioViewModel.cs @@ -1,5 +1,4 @@ using AsyncAwaitBestPractices.MVVM; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Services; using MusicX.Services; @@ -9,11 +8,8 @@ using MusicX.Views.Modals; using NLog; using System; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; -using System.Linq; -using System.Text; using System.Threading.Tasks; using System.Windows.Input; using MusicX.Helpers; diff --git a/MusicX/ViewModels/VKMixViewModel.cs b/MusicX/ViewModels/VKMixViewModel.cs index cc0ed7d0..260eb427 100644 --- a/MusicX/ViewModels/VKMixViewModel.cs +++ b/MusicX/ViewModels/VKMixViewModel.cs @@ -1,10 +1,7 @@ using System; -using System.Collections.Generic; using System.Threading.Tasks; using System.Windows.Input; using AsyncAwaitBestPractices.MVVM; -using Microsoft.AppCenter.Analytics; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Exceptions.Boom; using MusicX.Core.Services; diff --git a/MusicX/Views/DownloadsView.xaml.cs b/MusicX/Views/DownloadsView.xaml.cs index 916876c8..9d317cf6 100644 --- a/MusicX/Views/DownloadsView.xaml.cs +++ b/MusicX/Views/DownloadsView.xaml.cs @@ -1,8 +1,6 @@ using System; -using System.Collections.Generic; using System.Windows; using System.Windows.Controls; -using Microsoft.AppCenter.Analytics; using Microsoft.Extensions.DependencyInjection; using MusicX.Controls; using MusicX.Core.Services; diff --git a/MusicX/Views/FullScreenWindow.xaml.cs b/MusicX/Views/FullScreenWindow.xaml.cs index 1b5822a7..24fc80f0 100644 --- a/MusicX/Views/FullScreenWindow.xaml.cs +++ b/MusicX/Views/FullScreenWindow.xaml.cs @@ -6,7 +6,6 @@ using System.Windows.Input; using System.Windows.Media.Imaging; using System.Windows.Threading; -using Microsoft.AppCenter.Analytics; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Services; using MusicX.Helpers; diff --git a/MusicX/Views/LoginWindow.xaml.cs b/MusicX/Views/LoginWindow.xaml.cs index 45aa9803..759feed4 100644 --- a/MusicX/Views/LoginWindow.xaml.cs +++ b/MusicX/Views/LoginWindow.xaml.cs @@ -1,9 +1,7 @@ using System; -using System.Collections.Generic; using System.Diagnostics; using System.Threading; using System.Windows; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Services; using MusicX.Helpers; diff --git a/MusicX/Views/Modals/CreateUserRadioModal.xaml.cs b/MusicX/Views/Modals/CreateUserRadioModal.xaml.cs index 269e244b..3ead179b 100644 --- a/MusicX/Views/Modals/CreateUserRadioModal.xaml.cs +++ b/MusicX/Views/Modals/CreateUserRadioModal.xaml.cs @@ -1,17 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; +using System.Windows.Controls; namespace MusicX.Views.Modals { diff --git a/MusicX/Views/MusicXWindow.cs b/MusicX/Views/MusicXWindow.cs index 46caefd8..9ca8ac1e 100644 --- a/MusicX/Views/MusicXWindow.cs +++ b/MusicX/Views/MusicXWindow.cs @@ -5,7 +5,6 @@ using MusicX.Helpers; using MusicX.Services; using Wpf.Ui; -using Wpf.Ui.Appearance; using Wpf.Ui.Controls; using DispatcherPriority = System.Windows.Threading.DispatcherPriority; using NavigationService = MusicX.Services.NavigationService; diff --git a/MusicX/Views/PlaylistView.xaml.cs b/MusicX/Views/PlaylistView.xaml.cs index d88c1dce..1c39494d 100644 --- a/MusicX/Views/PlaylistView.xaml.cs +++ b/MusicX/Views/PlaylistView.xaml.cs @@ -4,7 +4,6 @@ using System.Runtime.Serialization; using System.Windows; using System.Windows.Controls; -using System.Windows.Media.Animation; using System.Windows.Navigation; using AsyncAwaitBestPractices; using Microsoft.Extensions.DependencyInjection; diff --git a/MusicX/Views/SettingsView.xaml.cs b/MusicX/Views/SettingsView.xaml.cs index 4a1bb627..76883d24 100644 --- a/MusicX/Views/SettingsView.xaml.cs +++ b/MusicX/Views/SettingsView.xaml.cs @@ -6,8 +6,6 @@ using System.Windows; using System.Windows.Controls; using System.Windows.Media.Imaging; -using Microsoft.AppCenter.Analytics; -using Microsoft.AppCenter.Crashes; using Microsoft.Extensions.DependencyInjection; using MusicX.Controls; using MusicX.Core.Services; @@ -15,14 +13,10 @@ using MusicX.Services; using MusicX.ViewModels; using MusicX.ViewModels.Modals; -using MusicX.Views.Login; using MusicX.Views.Modals; using NLog; using Ookii.Dialogs.Wpf; -using VkNet.Abstractions; -using VkNet.AudioBypassService.Models.Auth; using Wpf.Ui; -using Wpf.Ui.Appearance; using Wpf.Ui.Controls; using Wpf.Ui.Extensions; using Button = Wpf.Ui.Controls.Button; diff --git a/MusicX/Views/StartingWindow.xaml.cs b/MusicX/Views/StartingWindow.xaml.cs index 6be08c34..7d18587f 100644 --- a/MusicX/Views/StartingWindow.xaml.cs +++ b/MusicX/Views/StartingWindow.xaml.cs @@ -1,14 +1,11 @@ using System; -using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Net.Http; -using System.Text.Json; using System.Threading.Tasks; using System.Windows; using IF.Lastfm.Core.Api; using IF.Lastfm.Core.Scrobblers; -using Microsoft.AppCenter.Analytics; using Microsoft.Extensions.DependencyInjection; using MusicX.Core.Services; using MusicX.Helpers; @@ -25,7 +22,6 @@ using MusicX.ViewModels.Modals; using MusicX.Views.Login; using NLog; -using Sentry; using VkNet.Abstractions; using VkNet.AudioBypassService.Abstractions; using VkNet.AudioBypassService.Extensions; diff --git a/MusicX/Views/UserRadioView.xaml.cs b/MusicX/Views/UserRadioView.xaml.cs index e5f1b950..b5f8834f 100644 --- a/MusicX/Views/UserRadioView.xaml.cs +++ b/MusicX/Views/UserRadioView.xaml.cs @@ -1,18 +1,7 @@ using MusicX.ViewModels; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; namespace MusicX.Views {