Skip to content

Commit

Permalink
removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasduft committed Aug 18, 2021
1 parent 1801649 commit 445de69
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions samples/Server/Pages/Error.cshtml.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Diagnostics;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;

namespace Server.Pages
{
Expand All @@ -13,13 +12,6 @@ public class ErrorModel : PageModel

public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);

private readonly ILogger<ErrorModel> _logger;

public ErrorModel(ILogger<ErrorModel> logger)
{
_logger = logger;
}

public void OnGet()
{
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
Expand Down

0 comments on commit 445de69

Please sign in to comment.