Skip to content

Commit

Permalink
Remove commented-out createChangedSolution lines
Browse files Browse the repository at this point in the history
This commit simplifies the code by removing commented-out `createChangedSolution` lines in both `AddMethodCodeFixProvider` and `AddStaticToExistingMethodCodeFixProvider` classes. This helps to clean up the code and ensure that only the necessary logic is present.
  • Loading branch information
SteveDunn committed Oct 27, 2024
1 parent 42e8307 commit 8076386
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
var codeAction = CodeAction.Create(
title: title,
createChangedDocument: c => GenerateValidationMethodAsync(context.Document, context.Diagnostics, declaration, c),
// createChangedSolution: c => GenerateValidationMethodAsync(context.Document, declaration, c),
equivalenceKey: title);

context.RegisterCodeFix(codeAction, diagnostic);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
var codeAction = CodeAction.Create(
title: title,
createChangedDocument: c => MakeMethodStatic(context.Document, declaration, c),
// createChangedSolution: c => GenerateValidationMethodAsync(context.Document, declaration, c),
equivalenceKey: title);

context.RegisterCodeFix(codeAction, diagnostic);
Expand Down

0 comments on commit 8076386

Please sign in to comment.