Skip to content

Remove IsPresentationFrameworkVersionLessThan4 property and associated dead code - #9749

Merged
siagupta0202 merged 2 commits into
dotnet:mainfrom
h3xds1nz:remove-windowchrome-deadcode
Oct 9, 2024
Merged

siagupta0202 merged 2 commits into
dotnet:mainfrom
h3xds1nz:remove-windowchrome-deadcode

Conversation

@h3xds1nz

@h3xds1nz h3xds1nz commented Sep 9, 2024 •

Copy link
Copy Markdown
Member

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
@siagupta0202

Copy link
Copy Markdown
Contributor

@h3xds1nz Thank you for your contribution.

@h3xds1nz

h3xds1nz commented Oct 9, 2024

Copy link
Copy Markdown
Member Author

@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