Skip to content

Commit 0fa3ba6

Browse files
committed
Code quality improvements
1 parent 9057994 commit 0fa3ba6

File tree

4 files changed

+1
-6
lines changed

4 files changed

+1
-6
lines changed

csharp/extractor/Semmle.Extraction.CSharp/Entities/Assembly.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ namespace Semmle.Extraction.CSharp.Entities
55
{
66
internal class Assembly : Location
77
{
8-
public override Context Context => (Context)base.Context;
9-
108
private readonly string assemblyPath;
119
private readonly IAssemblySymbol assembly;
1210
private readonly bool isOutputAssembly;

csharp/extractor/Semmle.Extraction.CSharp/Entities/Base/Entity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Semmle.Extraction.CSharp
66
{
77
public abstract class Entity : IEntity
88
{
9-
public virtual Context Context { get; }
9+
public Context Context { get; }
1010

1111
protected Entity(Context context)
1212
{

csharp/extractor/Semmle.Extraction.CSharp/Entities/Locations/File.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ public class File : CachedEntity<string>
1111
protected readonly string originalPath;
1212
private readonly Lazy<PathTransformer.ITransformedPath> transformedPathLazy;
1313
protected PathTransformer.ITransformedPath TransformedPath => transformedPathLazy.Value;
14-
public override Context Context => (Context)base.Context;
1514
public override Microsoft.CodeAnalysis.Location? ReportingLocation => null;
1615

1716
public override bool NeedsPopulation => true;

csharp/extractor/Semmle.Extraction.CSharp/Entities/Locations/NonGeneratedSourceLocation.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ namespace Semmle.Extraction.CSharp.Entities
55
{
66
internal class NonGeneratedSourceLocation : SourceLocation
77
{
8-
public override Context Context => (Context)base.Context;
9-
108
protected NonGeneratedSourceLocation(Context cx, Microsoft.CodeAnalysis.Location init)
119
: base(cx, init)
1210
{

0 commit comments

Comments
 (0)