Commit e05a358
committed
Phase 1 python#8: emitSetupWithCommon dead-code delete
Phase 1 python#6 (emitBeforeWith) + python#7 (emitSetupWith) both folded their
PY_VERSION_HEX conditional + C++ wrapper logic INTO the C body, and
their callers now invoke hir_builder_emit_setup_with_common_c (the
internal C-bridge helper) directly from C — bypassing the C++ method
HIRBuilder::emitSetupWithCommon entirely.
That made the C++ wrapper DEAD: zero production callers.
Delete:
builder.cpp: -21L (15L method def + 3L extern decl + 3L blanks)
builder.h: -10L (decl removed)
builder_emit_c.c: +4 -5 (stale doc comment refresh — drop W27c
tag + C++ method back-reference)
NET: -32L pure deletion (no fold-into-C, no sig mutation).
The C body hir_builder_emit_setup_with_common_c is RETAINED — used
internally by hir_builder_emit_setup_with_c (Phase 1 python#7) and
hir_builder_emit_before_with_c (Phase 1 python#6) as a .c→.c helper.
Authorization: theologian 22:49:41Z (cross-check PASS, exhaustive
caller enumeration via grep -rnE '\bemitSetupWithCommon\b' Python
Include Lib/test → 0 production callers) + supervisor 22:49:52Z
(GO Step B). W45 fixture exemption justified per theologian 22:49:41Z:
shepard 22:46:33Z discipline applies to fold-into-C / sig-mutation;
delete-of-dead-code is neither (same precedent as Phase 1 python#1 INVOKE_*
delegation-stub deletes).
W44 gate: PASS (2 markers, 0 production callers).1 parent 5c91add commit e05a358
3 files changed
Lines changed: 4 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4267 | 4267 | | |
4268 | 4268 | | |
4269 | 4269 | | |
4270 | | - | |
4271 | | - | |
4272 | | - | |
4273 | | - | |
4274 | | - | |
4275 | | - | |
4276 | | - | |
4277 | | - | |
4278 | | - | |
4279 | | - | |
4280 | | - | |
4281 | | - | |
4282 | | - | |
4283 | | - | |
4284 | | - | |
4285 | | - | |
4286 | | - | |
4287 | | - | |
4288 | | - | |
4289 | | - | |
4290 | | - | |
4291 | 4270 | | |
4292 | 4271 | | |
4293 | 4272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | 474 | | |
485 | 475 | | |
486 | 476 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4093 | 4093 | | |
4094 | 4094 | | |
4095 | 4095 | | |
4096 | | - | |
4097 | | - | |
| 4096 | + | |
4098 | 4097 | | |
4099 | 4098 | | |
4100 | | - | |
4101 | | - | |
4102 | | - | |
| 4099 | + | |
| 4100 | + | |
| 4101 | + | |
4103 | 4102 | | |
4104 | 4103 | | |
4105 | 4104 | | |
| |||
0 commit comments