cleanup: MIRレガシーコード71行削除でJSON作業準備完了

Phase 15.5準備として、MIRコードベースの大規模クリーンアップを実施。
JSON centralization作業前の環境整備が完了しました。

削除内容(71行):
- コメントアウトされたimport文: 2行
- 不要なlegacy/removedコメント: 9行
- movedコメント大規模整理: 56行
- 開発用debugコード(eprintln!): 4行

安全性確認:
- 統一Call実装(NYASH_MIR_UNIFIED_CALL=1): 正常動作
- Legacy実装(NYASH_MIR_UNIFIED_CALL=0): 後方互換性維持
- JSON出力: mir_call形式で正常生成

Phase 15(80k→20k行削減)への貢献: 約0.09%

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Selfhosting Dev
2025-09-24 04:09:23 +09:00
parent b573c3e5b8
commit 868519c691
11 changed files with 123 additions and 71 deletions

View File

@ -176,7 +176,6 @@ impl super::MirBuilder {
Ok(out)
}
// control-flow build_* moved to control_flow.rs (use cf_* instead)
// Local declarations with optional initializers
pub(super) fn build_local_statement(
@ -318,4 +317,3 @@ impl super::MirBuilder {
Ok(me_value)
}
}
// use crate::mir::loop_api::LoopBuilderApi; // no longer needed here