Implicit usings and more global usings

This commit is contained in:
Kwoth
2021-12-21 02:19:21 +01:00
parent 9223d78849
commit c66e491ce9
317 changed files with 272 additions and 1425 deletions

View File

@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using NadekoBot.Services.Database.Models;
using NadekoBot.Services.Database.Models;
#nullable enable
namespace NadekoBot.Modules.Music;

View File

@@ -1,6 +1,4 @@
#nullable enable
using System.Threading.Tasks;
namespace NadekoBot.Modules.Music;
public interface IPlatformQueryResolver

View File

@@ -1,6 +1,4 @@
#nullable enable
using System.Threading.Tasks;
namespace NadekoBot.Modules.Music;
public interface ITrackCacher

View File

@@ -1,6 +1,4 @@
#nullable enable
using System.Threading.Tasks;
namespace NadekoBot.Modules.Music;
public interface ITrackInfo

View File

@@ -1,6 +1,4 @@
#nullable enable
using System.Threading.Tasks;
namespace NadekoBot.Modules.Music;
public interface ITrackResolveProvider

View File

@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using Ayu.Discord.Voice;
using Ayu.Discord.Voice;
namespace NadekoBot.Modules.Music;

View File

@@ -1,6 +1,5 @@
#nullable enable
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace NadekoBot.Modules.Music;

View File

@@ -1,5 +1,4 @@
using Discord;
using NadekoBot.Extensions;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Music;

View File

@@ -3,10 +3,7 @@ using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Ayu.Discord.Voice;
using NadekoBot.Common;
using NadekoBot.Services.Database.Models;
namespace NadekoBot.Modules.Music;

View File

@@ -1,6 +1,4 @@
#nullable enable
using System.Threading.Tasks;
namespace NadekoBot.Modules.Music;
public sealed partial class MusicQueue

View File

@@ -1,7 +1,6 @@
#nullable enable
using System.Runtime.CompilerServices;
using System.Text.Json;
using System.Threading.Tasks;
using StackExchange.Redis;
namespace NadekoBot.Modules.Music;

View File

@@ -1,6 +1,4 @@
#nullable enable
using System.Threading.Tasks;
namespace NadekoBot.Modules.Music;
public sealed class RemoteTrackInfo : ITrackInfo

View File

@@ -1,6 +1,4 @@
#nullable enable
using System.Threading.Tasks;
namespace NadekoBot.Modules.Music;
public sealed class SimpleTrackInfo : ITrackInfo

View File

@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using Ayu.Discord.Voice;
using Ayu.Discord.Voice;
using Ayu.Discord.Voice.Models;
namespace NadekoBot.Modules.Music;

View File

@@ -1,8 +1,6 @@
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Threading.Tasks;
#nullable enable
namespace NadekoBot.Modules.Music.Resolvers;

View File

@@ -1,6 +1,4 @@
using System.Net.Http;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Music.Resolvers;

View File

@@ -1,7 +1,4 @@
using System.Net.Http;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using NadekoBot.Services;
using System.Runtime.CompilerServices;
using Newtonsoft.Json.Linq;
#nullable enable

View File

@@ -1,6 +1,4 @@
#nullable enable
using System.Threading.Tasks;
namespace NadekoBot.Modules.Music;
public sealed class TrackResolveProvider : ITrackResolveProvider

View File

@@ -1,8 +1,6 @@
#nullable enable
using System.Globalization;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using NadekoBot.Services;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Music;

View File

@@ -1,10 +1,4 @@
using System.Threading;
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using NadekoBot.Common;
using NadekoBot.Common.Attributes;
using NadekoBot.Services.Database.Models;
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Services;
using NadekoBot.Modules.Music.Services;

View File

@@ -1,10 +1,4 @@
using System.Threading;
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using NadekoBot.Common.Attributes;
using NadekoBot.Services;
using NadekoBot.Services.Database.Models;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
using NadekoBot.Extensions;
using NadekoBot.Modules.Music.Services;

View File

@@ -1,10 +1,5 @@
using System.Collections.Concurrent;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using System.Reflection;
using Ayu.Discord.Voice;
using Discord.WebSocket;
using NadekoBot.Services;
namespace NadekoBot.Modules.Music.Services;

View File

@@ -1,8 +1,5 @@
#nullable enable
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Discord;
using NadekoBot.Common;
using NadekoBot.Services.Database.Models;
namespace NadekoBot.Modules.Music.Services;

View File

@@ -1,10 +1,5 @@
#nullable enable
using System.Collections.Concurrent;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Discord;
using Discord.WebSocket;
using NadekoBot.Services;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
using NadekoBot.Extensions;

View File

@@ -1,8 +1,6 @@
using System.Globalization;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
namespace NadekoBot.Modules.Music.Services;