-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Remove unused command resolver and parser files #51889
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
Conversation
Following PR #51661, this removes additional unused files: - TopLevelCommandParserResult.cs - internal class with no references - OutputPathCommandResolver.cs - unused command resolver - PathCommandResolverPolicy.cs - unused command resolver policy - DepsJsonCommandResolver.cs - unused command resolver Co-authored-by: marcpopMSFT <12663534+marcpopMSFT@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR removes four unused files from the command resolution infrastructure as a follow-up to PR #51661. The removed files contain command resolvers and a parser result class that are never instantiated or referenced anywhere in the codebase.
Key changes:
- Removed
TopLevelCommandParserResult.cs- an internal class with no references - Removed three command resolver classes (
OutputPathCommandResolver,PathCommandResolverPolicy,DepsJsonCommandResolver) that are not wired into the active resolver policies (DefaultCommandResolverPolicyorScriptCommandResolverPolicy)
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| TopLevelCommandParserResult.cs | Removed unused internal parser result class that was never instantiated |
| PathCommandResolverPolicy.cs | Removed unused resolver policy that was never instantiated or used by command resolution pipeline |
| OutputPathCommandResolver.cs | Removed unused path-based command resolver that extended AbstractPathBasedCommandResolver but was never added to any composite resolver |
| DepsJsonCommandResolver.cs | Removed unused deps.json-based command resolver that was never integrated into the command resolution pipeline |
|
@dsplaisted I asked copilot to identify and remove unused code. Here's what it came up with. Since things build, that's the only validation we really have. I did a search internally and externally and the only references I found externally were clones/forks of our own repos. Seems safe enough. |
Follow-up to #51661 (StatInterop.cs removal). Identified and removed additional dead code with no references in the codebase.
Files Removed
These resolvers are not wired into
DefaultCommandResolverPolicyorScriptCommandResolverPolicy. Verified via grep that no code references these types.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.