Skip to content

Commit 75894d5

Browse files
committed
C#: Remove unused classes from Util project
1 parent d7e5149 commit 75894d5

File tree

13 files changed

+2
-618
lines changed

13 files changed

+2
-618
lines changed

csharp/autobuilder/Semmle.Autobuild.CSharp/DotNetRule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public BuildScript Analyse(IAutobuilder<CSharpAutobuildOptions> builder, bool au
3232
if (auto)
3333
{
3434
NotDotNetProjects = builder.ProjectsOrSolutionsToBuild
35-
.SelectMany(p => Enumerators.Singleton(p).Concat(p.IncludedProjects))
35+
.SelectMany(p => new[] { p }.Concat(p.IncludedProjects))
3636
.OfType<Project<CSharpAutobuildOptions>>()
3737
.Where(p => !p.DotNetProject);
3838
var notDotNetProject = NotDotNetProjects.FirstOrDefault();

csharp/extractor/Semmle.Extraction.CSharp/Entities/Expressions/Lambda.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private Lambda(ExpressionNodeInfo info, ParenthesizedLambdaExpressionSyntax node
6363
public static Lambda Create(ExpressionNodeInfo info, ParenthesizedLambdaExpressionSyntax node) => new Lambda(info, node);
6464

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

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

csharp/extractor/Semmle.Util.Tests/ActionMap.cs

Lines changed: 0 additions & 54 deletions
This file was deleted.

csharp/extractor/Semmle.Util.Tests/TextTest.cs

Lines changed: 0 additions & 78 deletions
This file was deleted.

csharp/extractor/Semmle.Util/ActionMap.cs

Lines changed: 0 additions & 45 deletions
This file was deleted.

csharp/extractor/Semmle.Util/Enumerators.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

csharp/extractor/Semmle.Util/FileRenamer.cs

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)