Skip to content

Remove commented-out duplicate code in YGMeasureTest#1927

Closed
J8118 wants to merge 3 commits into
react:mainfrom
J8118:fix/remove-dead-code-tests
Closed

Remove commented-out duplicate code in YGMeasureTest#1927
J8118 wants to merge 3 commits into
react:mainfrom
J8118:fix/remove-dead-code-tests

Conversation

@J8118

@J8118 J8118 commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Remove three commented-out YGNodeSetMeasureFunc calls in tests/YGMeasureTest.cpp that are exact duplicates of the active calls on adjacent lines.

All three were introduced in commit fbd332d (2017-12-19) and left behind when the active lines were later updated by other authors. Each commented-out line sits directly next to its active duplicate:

  • Line 248 (commented) / line 249 (active)
  • Line 337 (commented) / line 336 (active)
  • Line 376 (commented) / line 377 (active)

Test plan

  • No behavioral changes — only removes dead commented-out code
  • The active YGNodeSetMeasureFunc calls remain unchanged

Remove three commented-out YGNodeSetMeasureFunc calls that duplicate
the active calls on adjacent lines. All three date from 2017 (fbd332d)
and were left behind when the active lines were later updated.
@meta-cla meta-cla Bot added the CLA Signed label Apr 9, 2026
@vercel

vercel Bot commented Apr 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
yoga-website Ready Ready Preview, Comment Apr 16, 2026 10:28pm

Request Review

@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Apr 9, 2026
@meta-codesync

meta-codesync Bot commented Apr 9, 2026

Copy link
Copy Markdown

@fabriziocucci has imported this pull request. If you are a Meta employee, you can view this in D100144096.

@meta-codesync

meta-codesync Bot commented Apr 17, 2026

Copy link
Copy Markdown

@fabriziocucci merged this pull request in cd0c6fd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Merged Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant