From 6fa2a95bdf52f62dcd6e4df6f4b1df5261a20987 Mon Sep 17 00:00:00 2001 From: nyash-codex Date: Fri, 28 Nov 2025 11:31:13 +0900 Subject: [PATCH] chore(joinir): Phase 40-4.1.1 dead code cleanup (16 lines) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove use_joinir_for_array_filter() from env.rs (9 lines) Route B is now default, env flag no longer needed - Remove next_var_id() from ast_lowerer.rs (7 lines) Duplicate of alloc_var() method Cumulative deletion: 51 lines (35 + 16) Tests: 5/5 Phase 40 PASS 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- docs/private | 2 +- src/config/env.rs | 11 +---------- src/mir/join_ir/frontend/ast_lowerer.rs | 7 ------- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/docs/private b/docs/private index ec5d1dfa..4d50a25a 160000 --- a/docs/private +++ b/docs/private @@ -1 +1 @@ -Subproject commit ec5d1dfafd82d198f7f9f464f357364ae022739e +Subproject commit 4d50a25a820ebf1c7e258a2a567a9118bb08f4be diff --git a/src/config/env.rs b/src/config/env.rs index 9d59edad..1578168f 100644 --- a/src/config/env.rs +++ b/src/config/env.rs @@ -265,17 +265,8 @@ pub fn joinir_debug_level() -> u8 { 0 } -/// Phase 40-3: array_ext.filter JoinIR経路切り替えフラグ -/// -/// - OFF (default): 旧AST→MIR + collect_assigned_vars経路 -/// - ON: JoinIR Frontend + JoinFuncMeta + convert_with_meta経路 -/// -/// Set HAKO_JOINIR_ARRAY_FILTER=1 to enable JoinIR route for array_ext.filter. -pub fn use_joinir_for_array_filter() -> bool { - env_bool("HAKO_JOINIR_ARRAY_FILTER") -} - // VM legacy by-name call fallback was removed (Phase 2 complete). +// Phase 40-4.1: use_joinir_for_array_filter() removed (Route B now default). // ---- Phase 11.8 MIR cleanup toggles ---- /// Core-13 minimal MIR mode toggle. Default ON unless NYASH_MIR_CORE13=0. diff --git a/src/mir/join_ir/frontend/ast_lowerer.rs b/src/mir/join_ir/frontend/ast_lowerer.rs index 733a2572..11ea63de 100644 --- a/src/mir/join_ir/frontend/ast_lowerer.rs +++ b/src/mir/join_ir/frontend/ast_lowerer.rs @@ -1038,13 +1038,6 @@ impl AstToJoinIrLowerer { id } - /// 次の変数 ID を生成 - fn next_var_id(&mut self) -> VarId { - let id = crate::mir::ValueId(self.next_var_id); - self.next_var_id += 1; - id - } - /// Phase 34-5: expr から「値を計算する JoinIR」と「結果を入れる ValueId」を返す /// /// ## 設計方針