Skip to content

Commit

Permalink
Fix build (#1482)
Browse files Browse the repository at this point in the history
Removes code made unused in #1378 that triggers build errors.
  • Loading branch information
drewnoakes authored Dec 22, 2023
1 parent 63497fd commit 2a0485a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
26 changes: 0 additions & 26 deletions src/Aspire.Dashboard/Components/Pages/Resources.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,27 +110,6 @@ protected override void OnInitialized()
});
}

private int GetUnviewedErrorCount(ResourceViewModel resource)
{
if (_applicationUnviewedErrorCounts is null)
{
return 0;
}

var application = TelemetryRepository.GetApplication(resource.Uid);
if (application is null)
{
return 0;
}

if (!_applicationUnviewedErrorCounts.TryGetValue(application, out var count))
{
return 0;
}

return count;
}

private void ShowEnvironmentVariables(ResourceViewModel resource)
{
if (SelectedResource == resource)
Expand Down Expand Up @@ -203,11 +182,6 @@ public void Dispose()
GC.SuppressFinalize(this);
}

private void ViewErrorStructuredLogs(ResourceViewModel resource)
{
NavigationManager.NavigateTo($"/StructuredLogs/{resource.Uid}?level=error");
}

private string? GetRowClass(ResourceViewModel resource)
=> resource == SelectedResource ? "selected-row" : null;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using Aspire.Dashboard.Model;
Expand All @@ -9,8 +9,6 @@ namespace Aspire.Dashboard.Components.ResourcesGridColumns;

public partial class StateColumnDisplay
{
[Inject]
public required IResourceService ResourceService { get; init; }
[Inject]
public required TelemetryRepository TelemetryRepository { get; init; }
[Inject]
Expand Down

0 comments on commit 2a0485a

Please sign in to comment.