Skip to content

Commit

Permalink
Remove unused usings (#5051)
Browse files Browse the repository at this point in the history
  • Loading branch information
lahma authored Nov 23, 2024
1 parent 5ef193c commit c062ed8
Show file tree
Hide file tree
Showing 107 changed files with 69 additions and 303 deletions.
5 changes: 1 addition & 4 deletions src/NSwag.AspNetCore.Launcher/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Reflection;

namespace NSwag.AspNetCore.Launcher
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using Microsoft.AspNetCore.Mvc;
using NJsonSchema.Generation;
using NJsonSchema.NewtonsoftJson.Generation;
using NSwag.CodeGeneration.OperationNameGenerators;
using NSwag.Generation.WebApi;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
using Xunit;

namespace NSwag.CodeGeneration.CSharp.Tests
Expand Down
3 changes: 1 addition & 2 deletions src/NSwag.CodeGeneration.CSharp.Tests/ArrayParameterTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using Xunit;
using Xunit;

namespace NSwag.CodeGeneration.CSharp.Tests
{
Expand Down
1 change: 0 additions & 1 deletion src/NSwag.CodeGeneration.CSharp.Tests/BinaryTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using NSwag.CodeGeneration.CSharp.Models;
using System.Threading.Tasks;
using Xunit;

namespace NSwag.CodeGeneration.CSharp.Tests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema.Generation;
using NJsonSchema.NewtonsoftJson.Generation;
using NSwag.Generation.WebApi;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Text.RegularExpressions;
using NJsonSchema;
using NJsonSchema.NewtonsoftJson.Generation;
using NSwag.CodeGeneration.CSharp.Models;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using Xunit;
using Xunit;

namespace NSwag.CodeGeneration.CSharp.Tests
{
Expand Down
6 changes: 1 addition & 5 deletions src/NSwag.CodeGeneration.CSharp.Tests/FileDownloadTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema.Generation;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema.NewtonsoftJson.Generation;
using NSwag.Generation.WebApi;
using Xunit;
Expand Down
5 changes: 1 addition & 4 deletions src/NSwag.CodeGeneration.CSharp.Tests/FileTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema.NewtonsoftJson.Generation;
using NSwag.Generation.WebApi;
using Xunit;
Expand Down
3 changes: 1 addition & 2 deletions src/NSwag.CodeGeneration.CSharp.Tests/FileUploadTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using NJsonSchema;
using NJsonSchema;
using Xunit;

namespace NSwag.CodeGeneration.CSharp.Tests
Expand Down
4 changes: 1 addition & 3 deletions src/NSwag.CodeGeneration.CSharp.Tests/FormParameterTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema;
using NJsonSchema.Generation;
using NJsonSchema.NewtonsoftJson.Generation;
using NSwag.Generation.WebApi;
using Xunit;
Expand Down
4 changes: 1 addition & 3 deletions src/NSwag.CodeGeneration.CSharp.Tests/HeadRequestTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema.Generation;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema.NewtonsoftJson.Generation;
using NSwag.Generation.WebApi;
using Xunit;
Expand Down
1 change: 0 additions & 1 deletion src/NSwag.CodeGeneration.CSharp.Tests/InheritanceTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using NSwag.CodeGeneration.CSharp;
using System.Threading.Tasks;
using Xunit;

namespace NSwag.CodeGeneration.TypeScript.Tests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Threading.Tasks;
using Xunit;

namespace NSwag.CodeGeneration.CSharp.Tests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema;
using NJsonSchema.Generation;
using NJsonSchema.NewtonsoftJson.Generation;
using NSwag.Generation.WebApi;
using Xunit;
Expand Down
4 changes: 1 addition & 3 deletions src/NSwag.CodeGeneration.CSharp.Tests/ParameterTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Threading.Tasks;
using NJsonSchema;
using NJsonSchema;
using Xunit;

namespace NSwag.CodeGeneration.CSharp.Tests
Expand Down
7 changes: 1 addition & 6 deletions src/NSwag.CodeGeneration.CSharp.Tests/PlainResponseTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using NSwag.Generation.WebApi;
using Xunit;
using Xunit;

namespace NSwag.CodeGeneration.CSharp.Tests
{
Expand Down
3 changes: 1 addition & 2 deletions src/NSwag.CodeGeneration.CSharp.Tests/PlainTextBodyTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using Xunit;
using Xunit;

namespace NSwag.CodeGeneration.CSharp.Tests
{
Expand Down
3 changes: 1 addition & 2 deletions src/NSwag.CodeGeneration.CSharp.Tests/QueryParameterTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using Xunit;
using Xunit;

namespace NSwag.CodeGeneration.CSharp.Tests
{
Expand Down
3 changes: 1 addition & 2 deletions src/NSwag.CodeGeneration.CSharp.Tests/ResponseTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using Xunit;
using Xunit;

namespace NSwag.CodeGeneration.CSharp.Tests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema.Generation;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema.NewtonsoftJson.Generation;
using NSwag.CodeGeneration.CSharp.Models;
using NSwag.Generation.WebApi;
Expand Down
3 changes: 0 additions & 3 deletions src/NSwag.CodeGeneration.CSharp.Tests/WrapResponsesTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema.Generation;
using NJsonSchema.NewtonsoftJson.Generation;
using NSwag.Generation.WebApi;
using Xunit;
Expand Down
6 changes: 1 addition & 5 deletions src/NSwag.CodeGeneration.Tests/CodeGenerationTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.ComponentModel.DataAnnotations;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using NJsonSchema;
using NJsonSchema.CodeGeneration.TypeScript;
using NJsonSchema.Generation;
Expand Down
4 changes: 1 addition & 3 deletions src/NSwag.CodeGeneration.TypeScript.Tests/AngularJSTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System.Threading.Tasks;
using Xunit;
using Xunit;
using NSwag.Generation.WebApi;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema.Generation;
using NJsonSchema;
using NJsonSchema.NewtonsoftJson.Generation;

Expand Down
4 changes: 1 addition & 3 deletions src/NSwag.CodeGeneration.TypeScript.Tests/AngularTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System.Threading.Tasks;
using Xunit;
using Xunit;
using NSwag.Generation.WebApi;
using Microsoft.AspNetCore.Mvc;
using System.ComponentModel.DataAnnotations;
using NJsonSchema.Generation;
using NJsonSchema;
using NJsonSchema.NewtonsoftJson.Generation;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using Xunit;
using Xunit;

namespace NSwag.CodeGeneration.TypeScript.Tests
{
Expand Down
4 changes: 1 addition & 3 deletions src/NSwag.CodeGeneration.TypeScript.Tests/AxiosTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System.Threading.Tasks;
using Xunit;
using Xunit;
using NSwag.Generation.WebApi;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema.Generation;
using NJsonSchema;
using NJsonSchema.NewtonsoftJson.Generation;

Expand Down
3 changes: 1 addition & 2 deletions src/NSwag.CodeGeneration.TypeScript.Tests/BinaryTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using Xunit;
using Xunit;

namespace NSwag.CodeGeneration.TypeScript.Tests
{
Expand Down
4 changes: 1 addition & 3 deletions src/NSwag.CodeGeneration.TypeScript.Tests/FetchTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System.Threading.Tasks;
using Xunit;
using Xunit;
using NSwag.Generation.WebApi;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema;
using NJsonSchema.Generation;
using NJsonSchema.NewtonsoftJson.Generation;

namespace NSwag.CodeGeneration.TypeScript.Tests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using Xunit;
using Xunit;

namespace NSwag.CodeGeneration.TypeScript.Tests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System.Threading.Tasks;
using Xunit;
using Xunit;
using NSwag.Generation.WebApi;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema.Generation;
using NJsonSchema;
using NJsonSchema.NewtonsoftJson.Generation;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema;
using NJsonSchema.Generation;
using NJsonSchema.NewtonsoftJson.Generation;
using NSwag.Generation.WebApi;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using Xunit;
using Xunit;

namespace NSwag.CodeGeneration.TypeScript.Tests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using NJsonSchema;
using NSwag.Generation.WebApi;
using System.Collections.Generic;
using Xunit;
using NJsonSchema.Generation;
using NJsonSchema.NewtonsoftJson.Generation;

namespace NSwag.CodeGeneration.TypeScript.Tests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using NJsonSchema.CodeGeneration.TypeScript;
using NSwag.Generation.WebApi;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Xunit;
using NJsonSchema.NewtonsoftJson.Converters;
using NJsonSchema.Generation;
using NJsonSchema;
using NJsonSchema.NewtonsoftJson.Generation;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema;
using NJsonSchema.CodeGeneration.TypeScript;
using NJsonSchema.Generation;
using NJsonSchema.NewtonsoftJson.Generation;
using NSwag.Generation.WebApi;
using Xunit;
Expand Down
4 changes: 1 addition & 3 deletions src/NSwag.Console/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Threading.Tasks;
using NConsole;
using NConsole;
using NSwag.Commands;

namespace NSwag
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System.Diagnostics;
using System.IO;
using System.Threading.Tasks;
using VerifyXunit;
using Xunit;

namespace NSwag.ConsoleCore.Tests
{
Expand Down
3 changes: 1 addition & 2 deletions src/NSwag.ConsoleCore/CoreConsoleHost.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using NConsole;
using NConsole;

namespace NSwag
{
Expand Down
4 changes: 1 addition & 3 deletions src/NSwag.ConsoleCore/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Threading.Tasks;
using NSwag.Commands;
using NSwag.Commands;

namespace NSwag
{
Expand Down
3 changes: 0 additions & 3 deletions src/NSwag.Core.Tests/DocumentLoadingTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System.Globalization;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using NJsonSchema;
using Xunit;

Expand Down
4 changes: 1 addition & 3 deletions src/NSwag.Core.Tests/DocumentReferenceTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Linq;
using System.Threading.Tasks;
using Xunit;
using Xunit;

namespace NSwag.Core.Tests
{
Expand Down
3 changes: 1 addition & 2 deletions src/NSwag.Core.Tests/HttpLoadingTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using Xunit;
using Xunit;

namespace NSwag.Core.Tests
{
Expand Down
3 changes: 1 addition & 2 deletions src/NSwag.Core.Tests/OperationIdTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Linq;
using Xunit;
using Xunit;

namespace NSwag.Core.Tests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Threading.Tasks;
using NJsonSchema;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using NJsonSchema;
using Xunit;

Expand Down
4 changes: 1 addition & 3 deletions src/NSwag.Core.Tests/Serialization/ExternalReferenceTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Linq;
using System.Threading.Tasks;
using Xunit;
using Xunit;

namespace NSwag.Core.Tests.Serialization
{
Expand Down
Loading

0 comments on commit c062ed8

Please sign in to comment.