Skip to content

Commit

Permalink
Merge pull request #224 from r-koubou/refactor/cleanup-using
Browse files Browse the repository at this point in the history
Unused using cleanup
  • Loading branch information
r-koubou authored Jan 26, 2025
2 parents a39ea48 + 6bbd1db commit b762f80
Show file tree
Hide file tree
Showing 22 changed files with 12 additions and 43 deletions.
1 change: 0 additions & 1 deletion Compiler/Applications/Cli/CompilerProgram.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Threading;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;

using KSPCompiler.LSPServer.Core.Compilations;
using KSPCompiler.LSPServer.Core.Extensions;

using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities;
using OmniSharp.Extensions.LanguageServer.Protocol.Document;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using KSPCompiler.Commons.Text;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;

namespace KSPCompiler.LSPServer.Core.Extensions;

using OmniSharpPosition = OmniSharp.Extensions.LanguageServer.Protocol.Models.Position;
using OmniSharpRange = OmniSharp.Extensions.LanguageServer.Protocol.Models.Range;
using OmniSharpPosition = Position;
using OmniSharpRange = Range;

public static class PositionExtension
{
public static OmniSharpPosition BeginAs( this Position position )
public static OmniSharpPosition BeginAs( this Commons.Text.Position position )
{
return new OmniSharpPosition()
{
Expand All @@ -16,7 +16,7 @@ public static OmniSharpPosition BeginAs( this Position position )
};
}

public static OmniSharpPosition EndAs( this Position position )
public static OmniSharpPosition EndAs( this Commons.Text.Position position )
{
return new OmniSharpPosition()
{
Expand All @@ -25,7 +25,7 @@ public static OmniSharpPosition EndAs( this Position position )
};
}

public static OmniSharpRange AsRange( this Position position )
public static OmniSharpRange AsRange( this Commons.Text.Position position )
{
return new OmniSharpRange
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

using KSPCompiler.LSPServer.Core.Ast;
using KSPCompiler.LSPServer.Core.Compilations;
using KSPCompiler.LSPServer.Core.Extensions;
using KSPCompiler.LSPServer.Core.Foldings.Extensions;

using OmniSharp.Extensions.LanguageServer.Protocol.Models;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

using KSPCompiler.Domain.Symbols;

using OmniSharp.Extensions.LanguageServer.Protocol.Models;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using KSPCompiler.Domain.Ast.Nodes.Blocks;
using KSPCompiler.Domain.Events;
using KSPCompiler.Domain.Symbols;
using KSPCompiler.Gateways;
using KSPCompiler.Gateways.Parsers;
using KSPCompiler.Interactors.Analysis;
using KSPCompiler.UseCases;
Expand Down
2 changes: 0 additions & 2 deletions Compiler/Domain.Tests/Symbols/MockUtility.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Collections.Generic;

using KSPCompiler.Domain.Symbols;

namespace KSPCompiler.Domain.Tests.Symbols;
Expand Down
3 changes: 1 addition & 2 deletions Compiler/Domain/Ast/Nodes/AstFunctionalNode.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using KSPCompiler.Commons.Text;
using KSPCompiler.Domain.Ast.Nodes.Blocks;
using KSPCompiler.Domain.Ast.Nodes.Blocks;

namespace KSPCompiler.Domain.Ast.Nodes
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using KSPCompiler.Domain.Symbols;

namespace KSPCompiler.Domain.Ast.Nodes.Expressions
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using NUnit.Framework;

using YamlDotNet.Serialization;
using YamlDotNet.Serialization.NamingConventions;

namespace KSPCompiler.ExternalSymbolRepository.Yaml.Tests;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;

using YamlDotNet.Core;
using YamlDotNet.Serialization;

namespace KSPCompiler.ExternalSymbolRepository.Yaml.UITypes.Models;
Expand All @@ -15,7 +16,7 @@ public sealed class UITypeSymbolModel : ISymbolModel

public string VariableType { get; set; } = string.Empty;

[YamlMember( ScalarStyle = YamlDotNet.Core.ScalarStyle.Literal )]
[YamlMember( ScalarStyle = ScalarStyle.Literal )]
public string Description { get; set; } = string.Empty;

public string BuiltIntoVersion { get; set; } = string.Empty;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.IO;

using KSPCompiler.Domain;
using KSPCompiler.Parser.Antlr.Tests.Commons;

using NUnit.Framework;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

using KSPCompiler.Domain.Ast.Nodes.Blocks;
using KSPCompiler.Domain.Events;
using KSPCompiler.Gateways;
using KSPCompiler.Gateways.Parsers;
using KSPCompiler.Infrastructures.Parser.Antlr.Translators;

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

using Antlr4.Runtime;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

using Antlr4.Runtime;
using Antlr4.Runtime;

using KSPCompiler.Domain.Ast.Nodes;
using KSPCompiler.Domain.Ast.Nodes.Expressions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

using Antlr4.Runtime;
using Antlr4.Runtime;

using KSPCompiler.Domain.Ast.Nodes;
using KSPCompiler.Domain.Ast.Nodes.Expressions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using KSPCompiler.Domain.Ast.Nodes.Blocks;
using KSPCompiler.Domain.Ast.Nodes.Expressions;
using KSPCompiler.Domain.Ast.Nodes.Extensions;
using KSPCompiler.Interactors.Analysis.Commons.Evaluations;
using KSPCompiler.Interactors.Analysis.Obfuscators.Extensions;
using KSPCompiler.UseCases.Analysis.Evaluations.Commands;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

using KSPCompiler.Domain.Ast.Nodes;
using KSPCompiler.Domain.Ast.Nodes.Blocks;
using KSPCompiler.Domain.Symbols;
using KSPCompiler.Interactors.Analysis.Obfuscators.Extensions;
using KSPCompiler.UseCases.Analysis.Evaluations.Declarations;
using KSPCompiler.UseCases.Analysis.Obfuscators;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using KSPCompiler.Domain.Symbols;
using KSPCompiler.Interactors.Analysis.Extensions;
using KSPCompiler.Resources;
using KSPCompiler.Resources;
using KSPCompiler.UseCases.Analysis.Evaluations.UserFunctions;

namespace KSPCompiler.Interactors.Analysis.Semantics;
Expand Down
3 changes: 0 additions & 3 deletions Compiler/Interactors/Analysis/Semantics/TypeCompatibility.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Linq;

using KSPCompiler.Domain.Symbols.MetaData;
using KSPCompiler.Domain.Symbols.MetaData.Extensions;

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

using KSPCompiler.Domain;
using KSPCompiler.Domain.Ast.Nodes;
using KSPCompiler.Domain.Ast.Nodes.Blocks;
Expand Down
1 change: 0 additions & 1 deletion Compiler/UseCases/Analysis/ISyntaxAnalysisUseCase.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;

using KSPCompiler.Domain.Ast.Nodes.Blocks;
using KSPCompiler.Gateways;
using KSPCompiler.Gateways.Parsers;

namespace KSPCompiler.UseCases.Analysis;
Expand Down

0 comments on commit b762f80

Please sign in to comment.