diff --git a/src/ComputeSharp.D2D1.CodeFixers/MissingPixelShaderDescriptorOnPixelShaderCodeFixer.cs b/src/ComputeSharp.D2D1.CodeFixers/MissingPixelShaderDescriptorOnPixelShaderCodeFixer.cs index 2f091f3a..02d00cf1 100644 --- a/src/ComputeSharp.D2D1.CodeFixers/MissingPixelShaderDescriptorOnPixelShaderCodeFixer.cs +++ b/src/ComputeSharp.D2D1.CodeFixers/MissingPixelShaderDescriptorOnPixelShaderCodeFixer.cs @@ -1,6 +1,5 @@ using System.Collections.Immutable; using System.Composition; -using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeActions; @@ -44,7 +43,7 @@ public sealed class MissingPixelShaderDescriptorOnPixelShaderCodeFixer : CodeFix context.RegisterCodeFix( CodeAction.Create( title: "Add [D2DGeneratedPixelShaderDescriptor] attribute", - createChangedDocument: token => ChangeReturnType(context.Document, root, structDeclaration, token), + createChangedDocument: token => ChangeReturnType(context.Document, root, structDeclaration), equivalenceKey: "Add [D2DGeneratedPixelShaderDescriptor] attribute"), diagnostic); } @@ -56,9 +55,8 @@ public sealed class MissingPixelShaderDescriptorOnPixelShaderCodeFixer : CodeFix /// The original document being fixed. /// The original tree root belonging to the current document. /// The to update. - /// The cancellation token for the operation. /// An updated document with the applied code fix, and the return type of the method being . - private static Task ChangeReturnType(Document document, SyntaxNode root, StructDeclarationSyntax structDeclaration, CancellationToken cancellationToken) + private static Task ChangeReturnType(Document document, SyntaxNode root, StructDeclarationSyntax structDeclaration) { int index = 0;