Skip to content

Commit

Permalink
optimize usings
Browse files Browse the repository at this point in the history
  • Loading branch information
zznty committed Aug 30, 2024
1 parent 405ddf8 commit 8369fbf
Show file tree
Hide file tree
Showing 68 changed files with 15 additions and 218 deletions.
6 changes: 1 addition & 5 deletions MusicX/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
15 changes: 1 addition & 14 deletions MusicX/Controls/ActionButtonControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 0 additions & 2 deletions MusicX/Controls/BannerControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
1 change: 0 additions & 1 deletion MusicX/Controls/BigBannerControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
14 changes: 1 addition & 13 deletions MusicX/Controls/BlockControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
1 change: 0 additions & 1 deletion MusicX/Controls/Blocks/ArtistBannerBlockControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion MusicX/Controls/Blocks/CuratorBannerBlockControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
11 changes: 3 additions & 8 deletions MusicX/Controls/Blocks/GroupsBlockControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down Expand Up @@ -47,7 +42,7 @@ private void Button_Click(object sender, RoutedEventArgs e)
{
var logger = StaticService.Container.GetRequiredService<Logger>();

logger.Error(ex, "Failed to open group {GroupName}", block.Groups.FirstOrDefault()?.ScreenName);
logger.Error(ex, "Failed to open group {GroupName}", Group?.ScreenName);
}
}
}
Expand Down
1 change: 0 additions & 1 deletion MusicX/Controls/Blocks/LinksNewsfeedBlockControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion MusicX/Controls/Blocks/MusicCategoryBlockControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions MusicX/Controls/Blocks/MusicOwnerCellBlockControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 0 additions & 3 deletions MusicX/Controls/Blocks/PlaceholderBlockControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 1 addition & 3 deletions MusicX/Controls/Blocks/SearchSuggestionsBlockControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using MusicX.Core.Models;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls;

namespace MusicX.Controls.Blocks
{
Expand Down
3 changes: 1 addition & 2 deletions MusicX/Controls/Blocks/TextsBlockControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using MusicX.Core.Models;
using System.Windows;
using System.Windows;
using System.Windows.Controls;
using MusicX.ViewModels;

Expand Down
5 changes: 1 addition & 4 deletions MusicX/Controls/Blocks/TitleBlockControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 0 additions & 3 deletions MusicX/Controls/Blocks/UserRadioBlockControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
4 changes: 1 addition & 3 deletions MusicX/Controls/Boom/ArtistControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 1 addition & 3 deletions MusicX/Controls/Boom/TagControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
6 changes: 1 addition & 5 deletions MusicX/Controls/CroppedPlaylistControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 0 additions & 1 deletion MusicX/Controls/DynamicUniformGrid.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;

namespace MusicX.Controls;

Expand Down
2 changes: 0 additions & 2 deletions MusicX/Controls/LinkControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 0 additions & 1 deletion MusicX/Controls/ListBanners.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Windows;
using System.Windows.Controls;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AppCenter.Crashes;

namespace MusicX.Controls
{
Expand Down
5 changes: 0 additions & 5 deletions MusicX/Controls/ListTracks.xaml.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
4 changes: 1 addition & 3 deletions MusicX/Controls/LyricsControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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
Expand Down
4 changes: 0 additions & 4 deletions MusicX/Controls/PlayerControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions MusicX/Controls/PlaylistControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 0 additions & 4 deletions MusicX/Controls/RecommendedPlaylistControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down
2 changes: 0 additions & 2 deletions MusicX/Controls/RecommsPlaylist.xaml.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 0 additions & 2 deletions MusicX/Controls/SuggestionControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
5 changes: 0 additions & 5 deletions MusicX/Controls/TrackControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 8369fbf

Please sign in to comment.