Skip to content

Commit e1c9bcf

Browse files
committed
Remove unused parameter
1 parent 6cdf53b commit e1c9bcf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/CommunityToolkit.Mvvm.CodeFixers/ClassUsingAttributeInsteadOfInheritanceCodeFixer.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public override async Task RegisterCodeFixesAsync(CodeFixContext context)
6464
context.RegisterCodeFix(
6565
CodeAction.Create(
6666
title: "Inherit from ObservableObject",
67-
createChangedDocument: token => UpdateReference(context.Document, root, classDeclaration, attributeTypeName, token),
67+
createChangedDocument: token => UpdateReference(context.Document, root, classDeclaration, attributeTypeName),
6868
equivalenceKey: "Inherit from ObservableObject"),
6969
diagnostic);
7070

@@ -80,9 +80,8 @@ public override async Task RegisterCodeFixesAsync(CodeFixContext context)
8080
/// <param name="root">The original tree root belonging to the current document.</param>
8181
/// <param name="classDeclaration">The <see cref="ClassDeclarationSyntax"/> to update.</param>
8282
/// <param name="attributeTypeName">The name of the attribute that should be removed.</param>
83-
/// <param name="cancellationToken">The cancellation token for the operation.</param>
8483
/// <returns>An updated document with the applied code fix, and <paramref name="classDeclaration"/> inheriting from <c>ObservableObject</c>.</returns>
85-
private static Task<Document> UpdateReference(Document document, SyntaxNode root, ClassDeclarationSyntax classDeclaration, string attributeTypeName, CancellationToken cancellationToken)
84+
private static Task<Document> UpdateReference(Document document, SyntaxNode root, ClassDeclarationSyntax classDeclaration, string attributeTypeName)
8685
{
8786
// Insert ObservableObject always in first position in the base list. The type might have
8887
// some interfaces in the base list, so we just copy them back after ObservableObject.

0 commit comments

Comments
 (0)