Skip to content

Remove unused method Binder.CheckViability<TSymbol>()#60865

Merged
RikkiGibson merged 1 commit intomainfrom
dev/rigibson/remove-unused-method
Apr 21, 2022
Merged

Remove unused method Binder.CheckViability<TSymbol>()#60865
RikkiGibson merged 1 commit intomainfrom
dev/rigibson/remove-unused-method

Conversation

@RikkiGibson
Copy link
Copy Markdown
Member

No description provided.

@ghost ghost added the Area-Compilers label Apr 20, 2022
Copy link
Copy Markdown
Member

@Youssef1313 Youssef1313 left a comment

Choose a reason for hiding this comment

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

In case you want to do more cleanup.

  • ExecutableCodeBinder.MemberSymbol property is unused.
  • LookupOptionExtensions.CanConsiderTypes extension method is unsued.
  • IsTypeExpressionOpen (in TypeofBinder for C#, and GetTypeBinder for VB)
  • HasReferenceDirectives methods (in CSharpExtensions and VisualBasicExtensions)
  • GetSubmissionInitializer in both CSharpCompilation and VisualBasicCompilation
  • Maybe a lot more.

Note: The work above for those unused members isn't mine. I'm filtering what's valid from #17630

@RikkiGibson RikkiGibson marked this pull request as ready for review April 20, 2022 21:51
@RikkiGibson RikkiGibson requested a review from a team as a code owner April 20, 2022 21:51
@RikkiGibson
Copy link
Copy Markdown
Member Author

In case you want to do more cleanup.

  • ExecutableCodeBinder.MemberSymbol property is unused.
  • LookupOptionExtensions.CanConsiderTypes extension method is unsued.
  • IsTypeExpressionOpen (in TypeofBinder for C#, and GetTypeBinder for VB)
  • HasReferenceDirectives methods (in CSharpExtensions and VisualBasicExtensions)
  • GetSubmissionInitializer in both CSharpCompilation and VisualBasicCompilation
  • Maybe a lot more.

Note: The work above for those unused members isn't mine. I'm filtering what's valid from #17630

Thank you for suggesting these. I don't anticipate addressing more dead code here.

Copy link
Copy Markdown
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

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

LGTM (commit 1)

@RikkiGibson RikkiGibson merged commit d2790e2 into main Apr 21, 2022
@ghost ghost added this to the Next milestone Apr 21, 2022
@RikkiGibson RikkiGibson deleted the dev/rigibson/remove-unused-method branch April 21, 2022 18:20
@dibarbet dibarbet modified the milestones: Next, 17.3.P1 Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants