Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unused vars #3168

Merged
merged 4 commits into from
Nov 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Source/Blazorise/Base/BaseTextInput.razor.cs
Original file line number Diff line number Diff line change
@@ -54,19 +54,22 @@ protected override ValueTask DisposeAsync( bool disposing )
{
ReleaseResources();
}

return base.DisposeAsync( disposing );
}

/// <summary>
/// Shared code to dispose of any internal resources.
/// </summary>
protected virtual void ReleaseResources()
protected override void ReleaseResources()
{
if ( inputValueDebouncer != null )
{
inputValueDebouncer.Debounced -= OnInputValueDebounced;
inputValueDebouncer = null;
}

base.ReleaseResources();
}

/// <summary>
1 change: 1 addition & 0 deletions Source/Blazorise/Themes/ThemeGenerator.cs
Original file line number Diff line number Diff line change
@@ -361,6 +361,7 @@ protected virtual void GenerateSidebarVariables( Theme theme, ThemeSidebarOption
/// <summary>
/// Generates the bar component CSS variables.
/// </summary>
/// <param name="theme">Currently used theme options.</param>
/// <param name="barOptions">Bar options.</param>
protected virtual void GenerateBarVariables( Theme theme, ThemeBarOptions barOptions )
{
4 changes: 2 additions & 2 deletions Source/Extensions/Blazorise.Snackbar/SnackbarStack.razor.cs
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ public SnackbarInfo( MarkupString message,

private SnackbarStackLocation location = SnackbarStackLocation.Center;

private List<SnackbarInfo> snackbarInfos = new();
private readonly List<SnackbarInfo> snackbarInfos = new();

#endregion

@@ -120,7 +120,7 @@ public Task PushAsync( MarkupString message, SnackbarColor color = SnackbarColor
/// <returns>Returns awaitable task.</returns>
public Task PushAsync( string message, string title = null, SnackbarColor color = SnackbarColor.None, Action<SnackbarOptions> options = null )
{
return PushAsync( (MarkupString)message, null, color, options );
return PushAsync( (MarkupString)message, title, color, options );
}

/// <summary>