Skip to content

Commit

Permalink
Merge pull request #16108 from tamasvajk/cleanup/utils
Browse files Browse the repository at this point in the history
C#: Remove unused classes from `Util` project
  • Loading branch information
tamasvajk authored Apr 3, 2024
2 parents 8b78463 + 75894d5 commit 9be2b9c
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 618 deletions.
2 changes: 1 addition & 1 deletion csharp/autobuilder/Semmle.Autobuild.CSharp/DotNetRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public BuildScript Analyse(IAutobuilder<CSharpAutobuildOptions> builder, bool au
if (auto)
{
NotDotNetProjects = builder.ProjectsOrSolutionsToBuild
.SelectMany(p => Enumerators.Singleton(p).Concat(p.IncludedProjects))
.SelectMany(p => new[] { p }.Concat(p.IncludedProjects))
.OfType<Project<CSharpAutobuildOptions>>()
.Where(p => !p.DotNetProject);
var notDotNetProject = NotDotNetProjects.FirstOrDefault();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private Lambda(ExpressionNodeInfo info, ParenthesizedLambdaExpressionSyntax node
public static Lambda Create(ExpressionNodeInfo info, ParenthesizedLambdaExpressionSyntax node) => new Lambda(info, node);

private Lambda(ExpressionNodeInfo info, SimpleLambdaExpressionSyntax node)
: this(info.SetKind(ExprKind.LAMBDA), node.Body, Enumerators.Singleton(node.Parameter), null) { }
: this(info.SetKind(ExprKind.LAMBDA), node.Body, [node.Parameter], null) { }

public static Lambda Create(ExpressionNodeInfo info, SimpleLambdaExpressionSyntax node) => new Lambda(info, node);

Expand Down
54 changes: 0 additions & 54 deletions csharp/extractor/Semmle.Util.Tests/ActionMap.cs

This file was deleted.

78 changes: 0 additions & 78 deletions csharp/extractor/Semmle.Util.Tests/TextTest.cs

This file was deleted.

45 changes: 0 additions & 45 deletions csharp/extractor/Semmle.Util/ActionMap.cs

This file was deleted.

19 changes: 0 additions & 19 deletions csharp/extractor/Semmle.Util/Enumerators.cs

This file was deleted.

34 changes: 0 additions & 34 deletions csharp/extractor/Semmle.Util/FileRenamer.cs

This file was deleted.

Loading

0 comments on commit 9be2b9c

Please sign in to comment.