Skip to content

Commit d6237d6

Browse files
committed
Remove unncessary interface and properties
1 parent 1546512 commit d6237d6

File tree

4 files changed

+4
-25
lines changed

4 files changed

+4
-25
lines changed

src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/IRazorGeneratedDocument.cs

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

src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/RazorCSharpDocument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace Microsoft.AspNetCore.Razor.Language;
99

10-
public sealed class RazorCSharpDocument : IRazorGeneratedDocument
10+
public sealed class RazorCSharpDocument
1111
{
1212
public RazorCodeDocument CodeDocument { get; }
1313
public SourceText Text { get; }
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.Collections.Immutable;
54
using Microsoft.CodeAnalysis.Text;
65

76
namespace Microsoft.AspNetCore.Razor.Language;
87

9-
internal sealed class RazorHtmlDocument : IRazorGeneratedDocument
8+
internal sealed class RazorHtmlDocument
109
{
11-
public RazorCodeDocument CodeDocument { get; }
1210
public SourceText Text { get; }
13-
public ImmutableArray<SourceMapping> SourceMappings { get; }
1411

15-
public RazorHtmlDocument(
16-
RazorCodeDocument codeDocument,
17-
SourceText text)
12+
public RazorHtmlDocument(SourceText text)
1813
{
19-
ArgHelper.ThrowIfNull(codeDocument);
2014
ArgHelper.ThrowIfNull(text);
2115

22-
CodeDocument = codeDocument;
2316
Text = text;
2417
}
2518
}

src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/RazorHtmlWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static RazorHtmlDocument GetHtmlDocument(RazorCodeDocument codeDocument)
5454
source.Text.Length == text.Length,
5555
$"The backing HTML document should be the same length as the original document. Expected: {source.Text.Length} Actual: {text.Length}");
5656

57-
return new RazorHtmlDocument(codeDocument, text);
57+
return new RazorHtmlDocument(text);
5858
}
5959

6060
private void Visit(RazorSyntaxTree syntaxTree)

0 commit comments

Comments
 (0)