Skip to content

Commit

Permalink
Better code style CodeViewer
Browse files Browse the repository at this point in the history
  • Loading branch information
Nix1983 committed Mar 2, 2024
1 parent 5daa01c commit 4347b9f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Components/Code/CodeViewer.razor
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,8 @@

private bool _isClicked = false;
private bool _isInit = false;
private int _linesCount;
private bool _expandCode = false;

protected override Task OnInitializedAsync()
{
_linesCount = Code.Split(new[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries).Length;
return base.OnInitializedAsync();
}

protected override async Task OnAfterRenderAsync(bool firstRender)
{
Expand All @@ -99,13 +93,6 @@
return l;
}

private async Task ToggleFullCode()
{

await JSRuntime.InvokeVoidAsync("highlightCode");
_expandCode = !_expandCode;

}

private async Task CopyToClipboard(string code)
{
Expand Down

0 comments on commit 4347b9f

Please sign in to comment.