Skip to content

refactor(codegen): remove unused method signature comparer - #10874

Merged
ReubenBond merged 1 commit into
dotnet:mainfrom
ReubenBond:rb-issue-10866-audit-dead-code
Aug 28, 2026
Merged

ReubenBond merged 1 commit into
dotnet:mainfrom
ReubenBond:rb-issue-10866-audit-dead-code

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

Summary

  • remove MethodSignatureComparer, an internal code-generator helper with no remaining call sites
  • reduce the maintained coverage denominator by 74 executable lines which were entirely uncovered

Rationale

The final use of MethodSignatureComparer.Default was removed by #9009, but the helper file remained. Semantic references and repository-wide symbol searches now find only the type's own declaration. The type is internal, has no reflection or source-generator registration, and does not appear in the generated public API surface. Removing it therefore reduces maintenance surface without changing package contracts or runtime behavior.

The retained merged Cobertura report records 0 of 74 executable lines covered for this file. Removing it changes the merged line rate from 73.996990% to 74.035880%, a +0.038890 percentage-point denominator correction.

Part of #10866.

Microsoft Reviewers: Open in CodeFlow

Copilot AI lite review requested due to automatic review settings August 27, 2026 23:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

Review tier: Lite
Findings: None

What changed in this PR

Removes an internal Orleans code-generator helper (MethodSignatureComparer) from Orleans.CodeGenerator now that it has no remaining call sites, reducing maintenance surface and eliminating uncovered executable lines from the maintained codebase.

Changes:

  • Deleted MethodSignatureComparer (an internal comparer for IMethodSymbol) from the code generator model layer.
File Description
src/​Orleans.CodeGenerator/​Model/​MethodSignatureComparer.cs Removes an unused internal helper type from the code generator.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI review requested due to automatic review settings August 28, 2026 01:04
@ReubenBond
ReubenBond force-pushed the rb-issue-10866-audit-dead-code branch from 47f4c91 to 8b093ab Compare August 28, 2026 01:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

Review tier: Lite
Findings: None

@github-actions

Copy link
Copy Markdown
Contributor

Code coverage

78.58% line coverage - 99,433 / 126,531 lines

Coverage details

@ReubenBond
ReubenBond merged commit 640f74d into dotnet:main Aug 28, 2026
139 of 141 checks passed
@ReubenBond
ReubenBond deleted the rb-issue-10866-audit-dead-code branch August 28, 2026 06:53
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants