Skip to content

Commit

Permalink
optimize usings
Browse files Browse the repository at this point in the history
  • Loading branch information
snixtho committed Dec 11, 2023
1 parent 679e5f5 commit 6f91122
Show file tree
Hide file tree
Showing 55 changed files with 17 additions and 99 deletions.
1 change: 0 additions & 1 deletion src/EvoSC.Commands/Parser/ChatCommandParser.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using EvoSC.Commands.Exceptions;
using EvoSC.Commands.Interfaces;
using EvoSC.Common.Interfaces.Parsing;

namespace EvoSC.Commands.Parser;

Expand Down
4 changes: 2 additions & 2 deletions src/EvoSC.Common/Config/Configuration.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Config.Net;
using EvoSC.Common.Config.Models;
using EvoSC.Common.Config.Stores;
using EvoSC.Common.Config.Mapping;
using EvoSC.Common.Config.Mapping.Toml;
using EvoSC.Common.Config.Models;
using EvoSC.Common.Config.Stores;

namespace EvoSC.Common.Config;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Dynamic;
using EvoSC.Common.Config.Models;
using EvoSC.Common.Interfaces.Config.Mapping;
using EvoSC.Common.Interfaces.Config.Mapping;
using EvoSC.Common.Themes;
using Tomlet;
using Tomlet.Models;
Expand Down
4 changes: 1 addition & 3 deletions src/EvoSC.Common/Config/Models/IEvoScBaseConfig.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using EvoSC.Common.Config.Mapping;
using EvoSC.Common.Themes;
using LinqToDB.Expressions;
using EvoSC.Common.Themes;

namespace EvoSC.Common.Config.Models;

Expand Down
3 changes: 0 additions & 3 deletions src/EvoSC.Common/Config/Stores/TomlConfigStore.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Reflection;
using Config.Net;
using EvoSC.Common.Themes;
using EvoSC.Common.Util;
using EvoSC.Common.Util.TextFormatting;
using Tomlet;
using Tomlet.Exceptions;
using Tomlet.Models;

namespace EvoSC.Common.Config.Stores;
Expand Down
1 change: 0 additions & 1 deletion src/EvoSC.Common/Database/Repository/DbRepository.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

using EvoSC.Common.Interfaces.Database;
using LinqToDB;
using LinqToDB.Data;

namespace EvoSC.Common.Database.Repository;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using LinqToDB;
using LinqToDB.Data;

namespace EvoSC.Common.Interfaces.Database;

Expand Down
1 change: 0 additions & 1 deletion src/EvoSC.Common/Remote/ChatRouter/RemoteChatRouter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using EvoSC.Common.Middleware;
using EvoSC.Common.Util;
using EvoSC.Common.Util.ServerUtils;
using EvoSC.Common.Util.TextFormatting;
using GbxRemoteNet.Events;
using Microsoft.Extensions.Logging;

Expand Down
2 changes: 0 additions & 2 deletions src/EvoSC.Common/Themes/Events/Args/ThemeUpdatedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using EvoSC.Common.Interfaces.Themes;

namespace EvoSC.Common.Themes.Events.Args;

public class ThemeUpdatedEventArgs : EventArgs
Expand Down
1 change: 0 additions & 1 deletion src/EvoSC.Common/Util/FormattingUtils.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Text.RegularExpressions;
using EvoSC.Common.Interfaces.Models;
using EvoSC.Common.Util.TextFormatting;

namespace EvoSC.Common.Util;
Expand Down
3 changes: 1 addition & 2 deletions src/EvoSC.Common/Util/TextFormatting/TextColor.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Diagnostics;
using System.Drawing;
using System.Drawing;

namespace EvoSC.Common.Util.TextFormatting;

Expand Down
1 change: 0 additions & 1 deletion src/EvoSC.Manialinks/ManialinkController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using EvoSC.Manialinks.Interfaces;
using EvoSC.Manialinks.Interfaces.Validation;
using EvoSC.Manialinks.Validation;
using ValidationResult = System.ComponentModel.DataAnnotations.ValidationResult;

namespace EvoSC.Manialinks;

Expand Down
1 change: 0 additions & 1 deletion src/EvoSC.Manialinks/Themes/DefaultCheckboxTheme.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using EvoSC.Common.Interfaces.Themes;
using EvoSC.Common.Themes;
using EvoSC.Common.Themes.Attributes;
using EvoSC.Common.Util;

namespace EvoSC.Manialinks.Themes;

Expand Down
1 change: 0 additions & 1 deletion src/EvoSC.Manialinks/Themes/DefaultRadioButtonTheme.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using EvoSC.Common.Interfaces.Themes;
using EvoSC.Common.Themes;
using EvoSC.Common.Themes.Attributes;
using EvoSC.Common.Util;

namespace EvoSC.Manialinks.Themes;

Expand Down
1 change: 0 additions & 1 deletion src/EvoSC.Manialinks/Themes/DefaultTextInputTheme.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using EvoSC.Common.Interfaces.Themes;
using EvoSC.Common.Themes;
using EvoSC.Common.Themes.Attributes;
using EvoSC.Common.Util;

namespace EvoSC.Manialinks.Themes;

Expand Down
1 change: 0 additions & 1 deletion src/EvoSC.Manialinks/Themes/DefaultToggleSwitchTheme.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using EvoSC.Common.Interfaces.Themes;
using EvoSC.Common.Themes;
using EvoSC.Common.Themes.Attributes;
using EvoSC.Common.Util;

namespace EvoSC.Manialinks.Themes;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using EvoSC.Commands.Interfaces;
using EvoSC.Common.Interfaces.Controllers;
using EvoSC.Common.Interfaces.Models;
using Moq;

namespace EvoSC.Testing.Controllers;

Expand Down
1 change: 0 additions & 1 deletion src/EvoSC.Testing/Controllers/ControllerContextMock.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using EvoSC.Common.Interfaces.Controllers;
using EvoSC.Common.Interfaces.Services;
using EvoSC.Common.Interfaces.Util.Auditing;
using EvoSC.Common.Util.Auditing;
using Moq;

namespace EvoSC.Testing.Controllers;
Expand Down
1 change: 0 additions & 1 deletion src/EvoSC.Testing/Controllers/ControllerMock.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using EvoSC.Common.Interfaces.Controllers;
using Moq;

namespace EvoSC.Testing.Controllers;

Expand Down
2 changes: 0 additions & 2 deletions src/EvoSC.Testing/Database/TestDbSetup.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Reflection;
using EvoSC.Common.Database.Migrations;
using EvoSC.Common.Interfaces.Database;
using FluentMigrator.Expressions;

namespace EvoSC.Testing.Database;

Expand Down
1 change: 0 additions & 1 deletion src/EvoSC/CliCommands/ConfigGeneratorCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using EvoSC.CLI.Attributes;
using EvoSC.Common.Application;
using EvoSC.Common.Config.Models;
using EvoSC.Common.Database;
using EvoSC.Common.Util;
using EvoSC.Common.Util.EnumIdentifier;
using EvoSC.Modules.Attributes;
Expand Down
4 changes: 2 additions & 2 deletions src/EvoSC/InternalModules.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using EvoSC.Common.Interfaces;
using EvoSC.Modules.Interfaces;
using EvoSC.Modules.Official.OpenPlanetModule;
using EvoSC.Modules.Official.CurrentMapModule;
using EvoSC.Modules.Official.ASayModule;
using EvoSC.Modules.Official.CurrentMapModule;
using EvoSC.Modules.Official.ExampleModule;
using EvoSC.Modules.Official.FastestCpModule;
using EvoSC.Modules.Official.LiveRankingModule;
Expand All @@ -13,6 +12,7 @@
using EvoSC.Modules.Official.MatchTrackerModule;
using EvoSC.Modules.Official.MotdModule;
using EvoSC.Modules.Official.NextMapModule;
using EvoSC.Modules.Official.OpenPlanetModule;
using EvoSC.Modules.Official.Player;
using EvoSC.Modules.Official.PlayerRecords;
using EvoSC.Modules.Official.Scoreboard;
Expand Down
5 changes: 0 additions & 5 deletions src/Modules/ASayModule/ASayModule.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
using EvoSC.Modules.Attributes;
using EvoSC.Modules.Interfaces;
using EvoSC.Modules.Official.ASayModule.Interfaces;

namespace EvoSC.Modules.Official.ASayModule;

[Module(IsInternal = true)]
public class ASayModule : EvoScModule
{
public ASayModule()
{
}
}
1 change: 0 additions & 1 deletion src/Modules/ASayModule/Controllers/ASayController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public class ASayController : EvoScController<CommandInteractionContext>

public ASayController(IASayService asayService)
{

_asayService = asayService;
}

Expand Down
2 changes: 0 additions & 2 deletions src/Modules/ASayModule/Services/ASayService.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using EvoSC.Common.Interfaces.Controllers;
using EvoSC.Common.Interfaces.Localization;
using EvoSC.Common.Services.Attributes;
using EvoSC.Common.Services.Models;
using EvoSC.Manialinks.Interfaces;
using EvoSC.Modules.Official.ASayModule.Events;
using EvoSC.Modules.Official.ASayModule.Interfaces;
using Microsoft.Extensions.Logging;

namespace EvoSC.Modules.Official.ASayModule.Services;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using EvoSC.Common.Remote.EventArgsModels;
using GbxRemoteNet.Events;
using GbxRemoteNet.Events;

namespace EvoSC.Modules.Official.CurrentMapModule.Interfaces;

Expand Down
2 changes: 1 addition & 1 deletion src/Modules/CurrentMapModule/Services/CurrentMapService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
using EvoSC.Manialinks.Interfaces;
using EvoSC.Modules.Official.CurrentMapModule.Interfaces;
using EvoSC.Modules.Official.WorldRecordModule.Interfaces;
using Microsoft.Extensions.Logging;
using GbxRemoteNet.Events;
using Microsoft.Extensions.Logging;

namespace EvoSC.Modules.Official.CurrentMapModule.Services;

Expand Down
4 changes: 0 additions & 4 deletions src/Modules/ExampleModule/ExampleController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@
using EvoSC.Commands.Interfaces;
using EvoSC.Common.Controllers;
using EvoSC.Common.Controllers.Attributes;
using EvoSC.Common.Controllers.Context;
using EvoSC.Common.Interfaces;
using EvoSC.Common.Interfaces.Controllers;
using EvoSC.Common.Interfaces.Database.Repository;
using EvoSC.Common.Interfaces.Localization;
using EvoSC.Common.Interfaces.Services;
using EvoSC.Common.Remote;
using EvoSC.Common.Util;
using EvoSC.Common.Util.MatchSettings;
using EvoSC.Common.Util.MatchSettings.Builders;
using EvoSC.Common.Util.MatchSettings.Models.ModeScriptSettingsModels;
using EvoSC.Common.Util.ServerUtils;
using EvoSC.Manialinks.Interfaces;
using GbxRemoteNet.Events;
Expand Down
3 changes: 1 addition & 2 deletions src/Modules/ExampleModule/ExampleController2.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using EvoSC.Commands;
using EvoSC.Commands.Attributes;
using EvoSC.Commands.Attributes;
using EvoSC.Commands.Interfaces;
using EvoSC.Common.Controllers;
using EvoSC.Common.Controllers.Attributes;
Expand Down
3 changes: 0 additions & 3 deletions src/Modules/ExampleModule/ExampleEventController.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using EvoSC.Common.Controllers;
using EvoSC.Common.Controllers.Attributes;
using EvoSC.Common.Controllers.Context;
using EvoSC.Common.Events;
using EvoSC.Common.Events.Attributes;
using EvoSC.Common.Interfaces.Controllers;
using EvoSC.Common.Interfaces.Services;
using EvoSC.Common.Remote;
using EvoSC.Common.Remote.EventArgsModels;
using EvoSC.Common.Util;
using EvoSC.Manialinks.Interfaces;
using GbxRemoteNet.Events;
using Microsoft.Extensions.Logging;
Expand Down
5 changes: 1 addition & 4 deletions src/Modules/ExampleModule/ExampleModule.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System.Reflection;
using EvoSC.Manialinks.Interfaces;
using EvoSC.Manialinks.Models;
using EvoSC.Modules.Attributes;
using EvoSC.Modules.Attributes;
using EvoSC.Modules.Interfaces;

namespace EvoSC.Modules.Official.ExampleModule;
Expand Down
1 change: 0 additions & 1 deletion src/Modules/ExampleModule/IMySettings.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Config.Net;
using EvoSC.Common.Util.EnumIdentifier;
using EvoSC.Modules.Attributes;

namespace EvoSC.Modules.Official.ExampleModule;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using EvoSC.Common.Controllers;
using EvoSC.Common.Controllers.Attributes;
using EvoSC.Common.Events.Attributes;
using EvoSC.Common.Interfaces.Controllers;
using EvoSC.Common.Remote;
using EvoSC.Common.Remote.EventArgsModels;
using EvoSC.Modules.Official.LiveRankingModule.Interfaces;
using GbxRemoteNet.Events;
using EvoSC.Common.Interfaces.Controllers;

namespace EvoSC.Modules.Official.LiveRankingModule.Controllers;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using EvoSC.Common.Interfaces;
using EvoSC.Common.Interfaces.Controllers;
using EvoSC.Common.Interfaces.Localization;
using EvoSC.Common.Services.Attributes;
using EvoSC.Common.Services.Models;
using EvoSC.Modules.Official.MatchManagerModule.Events;
using EvoSC.Modules.Official.MatchManagerModule.Events.EventArgObjects;
using EvoSC.Modules.Official.MatchManagerModule.Interfaces;

namespace EvoSC.Modules.Official.MatchManagerModule.Services;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using EvoSC.Common.Util;
using EvoSC.Manialinks.Interfaces;
using EvoSC.Modules.Official.LiveRankingModule.Models;
using EvoSC.Modules.Official.LiveRankingModule.Utils;
using EvoSC.Modules.Official.MatchRankingModule.Interfaces;
using EvoSC.Modules.Official.MatchRankingModule.Models;
using Microsoft.Extensions.Logging;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using EvoSC.Common.Interfaces.Services;
using EvoSC.Common.Remote;
using EvoSC.Common.Util;
using EvoSC.Manialinks.Interfaces;
using EvoSC.Modules.Official.MatchReadyModule.Interfaces;
using GbxRemoteNet.Events;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using EvoSC.Common.Controllers;
using EvoSC.Common.Controllers.Attributes;
using EvoSC.Common.Interfaces;
using EvoSC.Manialinks.Interfaces;
using EvoSC.Modules.Official.MatchReadyModule.Interfaces;

namespace EvoSC.Modules.Official.MatchReadyModule.Controllers;
Expand Down
1 change: 0 additions & 1 deletion src/Modules/NextMapModule/NextMapModule.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using EvoSC.Modules.Attributes;
using EvoSC.Modules.Interfaces;

namespace EvoSC.Modules.Official.NextMapModule;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
using EvoSC.Modules.Official.WorldRecordModule.Models;
using Flurl;
using Flurl.Http;
using GbxRemoteNet.Interfaces;
using Microsoft.Extensions.Logging;

namespace EvoSC.Modules.Official.WorldRecordModule.Services;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Threading.Tasks;
using EvoSC.Common.Database.Migrations;
using EvoSC.Common.Database.Models.Config;
using EvoSC.Common.Database.Repository.Permissions;
using EvoSC.Common.Database.Repository.Stores;
using EvoSC.Common.Interfaces.Database;
using EvoSC.Testing.Database;
Expand Down
2 changes: 0 additions & 2 deletions tests/EvoSC.Common.Tests/Database/MapRepositoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
using EvoSC.Common.Database.Migrations;
using EvoSC.Common.Database.Models.Maps;
using EvoSC.Common.Database.Repository.Maps;
using EvoSC.Common.Database.Repository.Players;
using EvoSC.Common.Interfaces.Database;
using EvoSC.Common.Interfaces.Models;
using EvoSC.Common.Models.Maps;
using EvoSC.Testing.Database;
using GbxRemoteNet.Structs;
using LinqToDB;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
using EvoSC.Common.Database.Migrations;
using EvoSC.Common.Database.Models.Permissions;
using EvoSC.Common.Database.Repository.Permissions;
using EvoSC.Common.Database.Repository.Players;
using EvoSC.Common.Interfaces.Database;
using EvoSC.Common.Interfaces.Models;
using EvoSC.Common.Permissions.Models;
using EvoSC.Testing.Database;
using GbxRemoteNet.Structs;
using LinqToDB;
using Xunit;

Expand Down
Loading

0 comments on commit 6f91122

Please sign in to comment.