Skip to content

Remove IsPresentationFrameworkVersionLessThan4 property and associated dead code #9749

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

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

h3xds1nz
Copy link
Member

@h3xds1nz h3xds1nz commented Sep 9, 2024

Description

Since those code blocks are never entered (in #8681 @lindexi made IsPresentationFrameworkVersionLessThan4 strictly false as it was always the result from reflection call anyways), we're just wasting memory by having the code around (and a tiny bit of perf).

Customer Impact

Decreased framework memory usage, decreased file size; cleaner codebase for developers.

Regression

No.

Testing

Local build but the diff is super easy to review.

Risk

There isn't any.

Microsoft Reviewers: Open in CodeFlow

@h3xds1nz h3xds1nz requested review from a team as code owners September 9, 2024 20:10
@dotnet-policy-service dotnet-policy-service bot added PR metadata: Label to tag PRs, to facilitate with triage Community Contribution A label for all community Contributions labels Sep 9, 2024
@siagupta0202 siagupta0202 self-assigned this Sep 30, 2024
@siagupta0202 siagupta0202 merged commit 77dd483 into dotnet:main Oct 9, 2024
8 checks passed
@siagupta0202
Copy link
Contributor

@h3xds1nz Thank you for your contribution.

@h3xds1nz
Copy link
Member Author

h3xds1nz commented Oct 9, 2024

@siagupta0202 Thanks for including it :)

@github-actions github-actions bot locked and limited conversation to collaborators Nov 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants