Drop the unreachable version branches in THP_PyFrame_New_NoTrack (#194553)
The function compiles only under `#if !IS_PYTHON_3_13_PLUS`, so its inner `IS_PYTHON_3_13_PLUS` and `IS_PYTHON_3_14_PLUS` arms contradict that guard and have never been compiled; they went dead when #194116 widened the outer guard. Only `f_fast_as_locals` stays reachable. No functional change. Test plan: evaluated every preprocessor condition in the file against Python 3.9 through 3.21, with and without `_WIN32`; no unsatisfiable branch remains. No build was run, as the removed lines never compiled. This PR was prepared with the assistance of an AI coding tool (Claude Code); I reviewed the diff and confirmed the removed branches are unreachable before submitting. Pull Request resolved: https://github.com/pytorch/pytorch/pull/194553 Approved by: https://github.com/rtimpe
C
cyy committed
404bc9e7d59e3e741490b56e65572a31d713a8a7
Parent: 91655aa
Committed by PyTorch MergeBot <pytorchmergebot@users.noreply.github.com>
on 8/25/2026, 3:14:35 AM