From f36d9b547199fffb2eba12312b83032cb7cfa34f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Fri, 3 Nov 2023 19:09:11 +0100 Subject: [PATCH] Remove unnecessary usings --- .../App_Start/BundleConfig.cs | 3 +-- .../App_Start/FilterConfig.cs | 3 +-- .../App_Start/RouteConfig.cs | 6 +----- sandbox/OpenIddict.Sandbox.AspNet.Client/Global.asax.cs | 6 +----- .../App_Start/BundleConfig.cs | 3 +-- .../App_Start/FilterConfig.cs | 3 +-- .../App_Start/IdentityConfig.cs | 4 ---- .../Controllers/AccountController.cs | 5 +---- .../Controllers/HomeController.cs | 6 +----- .../Controllers/ManageController.cs | 3 +-- src/OpenIddict.Client.Owin/OpenIddictClientOwinHandler.cs | 2 -- src/OpenIddict.Client/OpenIddictClientBuilder.cs | 1 - src/OpenIddict.Client/OpenIddictClientEvents.Exchange.cs | 2 -- .../OpenIddictServerAspNetCoreIntegrationTestServer.cs | 1 - .../OpenIddictServerIntegrationTests.Protection.cs | 1 - .../OpenIddictServerIntegrationTests.Revocation.cs | 1 - .../OpenIddictServerIntegrationTests.Session.cs | 1 - .../OpenIddictServerOwinIntegrationTestServer.cs | 1 - .../OpenIddictValidationAspNetCoreIntegrationTestServer.cs | 1 - .../OpenIddictValidationAspNetCoreIntegrationTests.cs | 1 - .../OpenIddictValidationOwinIntegrationTestServer.cs | 1 - .../OpenIddictValidationOwinIntegrationTests.cs | 1 - 22 files changed, 9 insertions(+), 47 deletions(-) diff --git a/sandbox/OpenIddict.Sandbox.AspNet.Client/App_Start/BundleConfig.cs b/sandbox/OpenIddict.Sandbox.AspNet.Client/App_Start/BundleConfig.cs index 0c2528eb..92ae35c8 100644 --- a/sandbox/OpenIddict.Sandbox.AspNet.Client/App_Start/BundleConfig.cs +++ b/sandbox/OpenIddict.Sandbox.AspNet.Client/App_Start/BundleConfig.cs @@ -1,5 +1,4 @@ -using System.Web; -using System.Web.Optimization; +using System.Web.Optimization; namespace OpenIddict.Sandbox.AspNet.Client { diff --git a/sandbox/OpenIddict.Sandbox.AspNet.Client/App_Start/FilterConfig.cs b/sandbox/OpenIddict.Sandbox.AspNet.Client/App_Start/FilterConfig.cs index 34e8cf61..8c732307 100644 --- a/sandbox/OpenIddict.Sandbox.AspNet.Client/App_Start/FilterConfig.cs +++ b/sandbox/OpenIddict.Sandbox.AspNet.Client/App_Start/FilterConfig.cs @@ -1,5 +1,4 @@ -using System.Web; -using System.Web.Mvc; +using System.Web.Mvc; namespace OpenIddict.Sandbox.AspNet.Client { diff --git a/sandbox/OpenIddict.Sandbox.AspNet.Client/App_Start/RouteConfig.cs b/sandbox/OpenIddict.Sandbox.AspNet.Client/App_Start/RouteConfig.cs index e9eff5be..fc9cd975 100644 --- a/sandbox/OpenIddict.Sandbox.AspNet.Client/App_Start/RouteConfig.cs +++ b/sandbox/OpenIddict.Sandbox.AspNet.Client/App_Start/RouteConfig.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Web.Mvc; +using System.Web.Mvc; using System.Web.Routing; namespace OpenIddict.Sandbox.AspNet.Client diff --git a/sandbox/OpenIddict.Sandbox.AspNet.Client/Global.asax.cs b/sandbox/OpenIddict.Sandbox.AspNet.Client/Global.asax.cs index 06cdf259..e422f97a 100644 --- a/sandbox/OpenIddict.Sandbox.AspNet.Client/Global.asax.cs +++ b/sandbox/OpenIddict.Sandbox.AspNet.Client/Global.asax.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Web.Mvc; +using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; diff --git a/sandbox/OpenIddict.Sandbox.AspNet.Server/App_Start/BundleConfig.cs b/sandbox/OpenIddict.Sandbox.AspNet.Server/App_Start/BundleConfig.cs index 32ca19c8..b61b2e43 100644 --- a/sandbox/OpenIddict.Sandbox.AspNet.Server/App_Start/BundleConfig.cs +++ b/sandbox/OpenIddict.Sandbox.AspNet.Server/App_Start/BundleConfig.cs @@ -1,5 +1,4 @@ -using System.Web; -using System.Web.Optimization; +using System.Web.Optimization; namespace OpenIddict.Sandbox.AspNet.Server { diff --git a/sandbox/OpenIddict.Sandbox.AspNet.Server/App_Start/FilterConfig.cs b/sandbox/OpenIddict.Sandbox.AspNet.Server/App_Start/FilterConfig.cs index 7253bd93..54d3a557 100644 --- a/sandbox/OpenIddict.Sandbox.AspNet.Server/App_Start/FilterConfig.cs +++ b/sandbox/OpenIddict.Sandbox.AspNet.Server/App_Start/FilterConfig.cs @@ -1,5 +1,4 @@ -using System.Web; -using System.Web.Mvc; +using System.Web.Mvc; namespace OpenIddict.Sandbox.AspNet.Server { diff --git a/sandbox/OpenIddict.Sandbox.AspNet.Server/App_Start/IdentityConfig.cs b/sandbox/OpenIddict.Sandbox.AspNet.Server/App_Start/IdentityConfig.cs index c3d37674..c4d7dc48 100644 --- a/sandbox/OpenIddict.Sandbox.AspNet.Server/App_Start/IdentityConfig.cs +++ b/sandbox/OpenIddict.Sandbox.AspNet.Server/App_Start/IdentityConfig.cs @@ -1,10 +1,6 @@ using System; -using System.Collections.Generic; -using System.Data.Entity; -using System.Linq; using System.Security.Claims; using System.Threading.Tasks; -using System.Web; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity.Owin; diff --git a/sandbox/OpenIddict.Sandbox.AspNet.Server/Controllers/AccountController.cs b/sandbox/OpenIddict.Sandbox.AspNet.Server/Controllers/AccountController.cs index 87f4a008..195dd55a 100644 --- a/sandbox/OpenIddict.Sandbox.AspNet.Server/Controllers/AccountController.cs +++ b/sandbox/OpenIddict.Sandbox.AspNet.Server/Controllers/AccountController.cs @@ -1,7 +1,4 @@ -using System; -using System.Globalization; -using System.Linq; -using System.Security.Claims; +using System.Linq; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; diff --git a/sandbox/OpenIddict.Sandbox.AspNet.Server/Controllers/HomeController.cs b/sandbox/OpenIddict.Sandbox.AspNet.Server/Controllers/HomeController.cs index 35de9123..08897138 100644 --- a/sandbox/OpenIddict.Sandbox.AspNet.Server/Controllers/HomeController.cs +++ b/sandbox/OpenIddict.Sandbox.AspNet.Server/Controllers/HomeController.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Web.Mvc; +using System.Web.Mvc; namespace OpenIddict.Sandbox.AspNet.Server.Controllers { diff --git a/sandbox/OpenIddict.Sandbox.AspNet.Server/Controllers/ManageController.cs b/sandbox/OpenIddict.Sandbox.AspNet.Server/Controllers/ManageController.cs index 42975492..af0c2326 100644 --- a/sandbox/OpenIddict.Sandbox.AspNet.Server/Controllers/ManageController.cs +++ b/sandbox/OpenIddict.Sandbox.AspNet.Server/Controllers/ManageController.cs @@ -1,5 +1,4 @@ -using System; -using System.Linq; +using System.Linq; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; diff --git a/src/OpenIddict.Client.Owin/OpenIddictClientOwinHandler.cs b/src/OpenIddict.Client.Owin/OpenIddictClientOwinHandler.cs index b6c3e1d0..25853042 100644 --- a/src/OpenIddict.Client.Owin/OpenIddictClientOwinHandler.cs +++ b/src/OpenIddict.Client.Owin/OpenIddictClientOwinHandler.cs @@ -6,14 +6,12 @@ using System.Collections.Immutable; using System.ComponentModel; -using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Runtime.CompilerServices; using System.Security.Claims; using System.Text.Json; using Microsoft.Owin.Security.Infrastructure; -using OpenIddict.Extensions; using static OpenIddict.Client.Owin.OpenIddictClientOwinConstants; using Properties = OpenIddict.Client.Owin.OpenIddictClientOwinConstants.Properties; diff --git a/src/OpenIddict.Client/OpenIddictClientBuilder.cs b/src/OpenIddict.Client/OpenIddictClientBuilder.cs index 41ace5f1..24eaf189 100644 --- a/src/OpenIddict.Client/OpenIddictClientBuilder.cs +++ b/src/OpenIddict.Client/OpenIddictClientBuilder.cs @@ -8,7 +8,6 @@ using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Reflection; using System.Runtime.InteropServices; -using System.Runtime.Versioning; using System.Security.Claims; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; diff --git a/src/OpenIddict.Client/OpenIddictClientEvents.Exchange.cs b/src/OpenIddict.Client/OpenIddictClientEvents.Exchange.cs index c603c021..2942bb86 100644 --- a/src/OpenIddict.Client/OpenIddictClientEvents.Exchange.cs +++ b/src/OpenIddict.Client/OpenIddictClientEvents.Exchange.cs @@ -4,8 +4,6 @@ * the license and the contributors participating to this project. */ -using System.Security.Claims; - namespace OpenIddict.Client; public static partial class OpenIddictClientEvents diff --git a/test/OpenIddict.Server.AspNetCore.IntegrationTests/OpenIddictServerAspNetCoreIntegrationTestServer.cs b/test/OpenIddict.Server.AspNetCore.IntegrationTests/OpenIddictServerAspNetCoreIntegrationTestServer.cs index 26c5f200..664fe1df 100644 --- a/test/OpenIddict.Server.AspNetCore.IntegrationTests/OpenIddictServerAspNetCoreIntegrationTestServer.cs +++ b/test/OpenIddict.Server.AspNetCore.IntegrationTests/OpenIddictServerAspNetCoreIntegrationTestServer.cs @@ -4,7 +4,6 @@ * the license and the contributors participating to this project. */ -using System.Diagnostics.CodeAnalysis; using Microsoft.AspNetCore.TestHost; using OpenIddict.Server.IntegrationTests; diff --git a/test/OpenIddict.Server.IntegrationTests/OpenIddictServerIntegrationTests.Protection.cs b/test/OpenIddict.Server.IntegrationTests/OpenIddictServerIntegrationTests.Protection.cs index d4b19a1d..e022878e 100644 --- a/test/OpenIddict.Server.IntegrationTests/OpenIddictServerIntegrationTests.Protection.cs +++ b/test/OpenIddict.Server.IntegrationTests/OpenIddictServerIntegrationTests.Protection.cs @@ -6,7 +6,6 @@ * the license and the contributors participating to this project. */ -using System.Collections.Immutable; using System.Security.Claims; using Xunit; using static OpenIddict.Server.OpenIddictServerEvents; diff --git a/test/OpenIddict.Server.IntegrationTests/OpenIddictServerIntegrationTests.Revocation.cs b/test/OpenIddict.Server.IntegrationTests/OpenIddictServerIntegrationTests.Revocation.cs index bf2314e8..ff6ccd8c 100644 --- a/test/OpenIddict.Server.IntegrationTests/OpenIddictServerIntegrationTests.Revocation.cs +++ b/test/OpenIddict.Server.IntegrationTests/OpenIddictServerIntegrationTests.Revocation.cs @@ -7,7 +7,6 @@ using System.Net.Http; using System.Security.Claims; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Options; using Moq; using Xunit; using static OpenIddict.Server.OpenIddictServerEvents; diff --git a/test/OpenIddict.Server.IntegrationTests/OpenIddictServerIntegrationTests.Session.cs b/test/OpenIddict.Server.IntegrationTests/OpenIddictServerIntegrationTests.Session.cs index dd8d3992..ab1e3794 100644 --- a/test/OpenIddict.Server.IntegrationTests/OpenIddictServerIntegrationTests.Session.cs +++ b/test/OpenIddict.Server.IntegrationTests/OpenIddictServerIntegrationTests.Session.cs @@ -4,7 +4,6 @@ * the license and the contributors participating to this project. */ -using System.Collections.Immutable; using System.Net.Http; using System.Security.Claims; using Microsoft.Extensions.DependencyInjection; diff --git a/test/OpenIddict.Server.Owin.IntegrationTests/OpenIddictServerOwinIntegrationTestServer.cs b/test/OpenIddict.Server.Owin.IntegrationTests/OpenIddictServerOwinIntegrationTestServer.cs index efcf25c9..50c72b26 100644 --- a/test/OpenIddict.Server.Owin.IntegrationTests/OpenIddictServerOwinIntegrationTestServer.cs +++ b/test/OpenIddict.Server.Owin.IntegrationTests/OpenIddictServerOwinIntegrationTestServer.cs @@ -4,7 +4,6 @@ * the license and the contributors participating to this project. */ -using System.Diagnostics.CodeAnalysis; using Microsoft.Owin.Testing; using OpenIddict.Server.IntegrationTests; diff --git a/test/OpenIddict.Validation.AspNetCore.IntegrationTests/OpenIddictValidationAspNetCoreIntegrationTestServer.cs b/test/OpenIddict.Validation.AspNetCore.IntegrationTests/OpenIddictValidationAspNetCoreIntegrationTestServer.cs index 25ce755d..9a5066b6 100644 --- a/test/OpenIddict.Validation.AspNetCore.IntegrationTests/OpenIddictValidationAspNetCoreIntegrationTestServer.cs +++ b/test/OpenIddict.Validation.AspNetCore.IntegrationTests/OpenIddictValidationAspNetCoreIntegrationTestServer.cs @@ -4,7 +4,6 @@ * the license and the contributors participating to this project. */ -using System.Diagnostics.CodeAnalysis; using Microsoft.AspNetCore.TestHost; using OpenIddict.Validation.IntegrationTests; diff --git a/test/OpenIddict.Validation.AspNetCore.IntegrationTests/OpenIddictValidationAspNetCoreIntegrationTests.cs b/test/OpenIddict.Validation.AspNetCore.IntegrationTests/OpenIddictValidationAspNetCoreIntegrationTests.cs index 77f00c63..a29ccdab 100644 --- a/test/OpenIddict.Validation.AspNetCore.IntegrationTests/OpenIddictValidationAspNetCoreIntegrationTests.cs +++ b/test/OpenIddict.Validation.AspNetCore.IntegrationTests/OpenIddictValidationAspNetCoreIntegrationTests.cs @@ -4,7 +4,6 @@ * the license and the contributors participating to this project. */ -using System.Diagnostics.CodeAnalysis; using System.Security.Claims; using System.Text.Json; using Microsoft.AspNetCore.Authentication; diff --git a/test/OpenIddict.Validation.Owin.IntegrationTests/OpenIddictValidationOwinIntegrationTestServer.cs b/test/OpenIddict.Validation.Owin.IntegrationTests/OpenIddictValidationOwinIntegrationTestServer.cs index d3e1b084..7ea10319 100644 --- a/test/OpenIddict.Validation.Owin.IntegrationTests/OpenIddictValidationOwinIntegrationTestServer.cs +++ b/test/OpenIddict.Validation.Owin.IntegrationTests/OpenIddictValidationOwinIntegrationTestServer.cs @@ -4,7 +4,6 @@ * the license and the contributors participating to this project. */ -using System.Diagnostics.CodeAnalysis; using Microsoft.Owin.Testing; using OpenIddict.Validation.IntegrationTests; diff --git a/test/OpenIddict.Validation.Owin.IntegrationTests/OpenIddictValidationOwinIntegrationTests.cs b/test/OpenIddict.Validation.Owin.IntegrationTests/OpenIddictValidationOwinIntegrationTests.cs index d44af856..525a8b54 100644 --- a/test/OpenIddict.Validation.Owin.IntegrationTests/OpenIddictValidationOwinIntegrationTests.cs +++ b/test/OpenIddict.Validation.Owin.IntegrationTests/OpenIddictValidationOwinIntegrationTests.cs @@ -4,7 +4,6 @@ * the license and the contributors participating to this project. */ -using System.Diagnostics.CodeAnalysis; using System.Security.Claims; using System.Text.Json; using Microsoft.Extensions.DependencyInjection;