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

Remove dead code from diagnostics subsystem #77034

Merged
merged 5 commits into from
Feb 5, 2025

Conversation

CyrusNajmabadi
Copy link
Member

No description provided.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner February 4, 2025 20:41
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Feb 4, 2025
public readonly Project Project;
public readonly ImmutableArray<StateSet> Added;
public readonly ImmutableArray<StateSet> Removed;
public readonly ImmutableArray<StateSet> Removed;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the above two values were never read.

// new reference added
return new ProjectAnalyzerReferenceChangedEventArgs(project, newMap.Values.ToImmutableArrayOrEmpty(), []);
return null;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

converted to 'null', since hte only code that reads the 'removed' argument bails out if it is empty.

@CyrusNajmabadi CyrusNajmabadi marked this pull request as draft February 4, 2025 20:42
@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review February 4, 2025 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants