From be514aeff17ab7d8debcc59acddd07f7c7b72bd7 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 9 Aug 2026 08:40:21 +0900 Subject: refactor(installer): drop the GC control calls Composer turns the cycle collector off around the dependency solver, but Rust has no GC, so the gc_collect_cycles/gc_disable/gc_enable shims were no-ops. Remove the call sites and the now-callerless shim functions. Co-Authored-By: Claude Opus 5 (1M context) --- crates/shirabe-php-shim/src/runtime.rs | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'crates/shirabe-php-shim/src') diff --git a/crates/shirabe-php-shim/src/runtime.rs b/crates/shirabe-php-shim/src/runtime.rs index 6ad5bc29..e24d6d69 100644 --- a/crates/shirabe-php-shim/src/runtime.rs +++ b/crates/shirabe-php-shim/src/runtime.rs @@ -394,19 +394,6 @@ pub fn ini_set(_varname: &str, _value: &str) -> Option { todo!() } -pub fn gc_collect_cycles() -> i64 { - // Rust has no cycle collector; nothing is collected. - 0 -} - -pub fn gc_disable() { - // Rust has no cycle collector to disable. -} - -pub fn gc_enable() { - // Rust has no cycle collector to enable. -} - pub fn phpinfo(_what: i64) { // TODO(php-runtime): phpinfo() dumps the full PHP runtime configuration, which the shim does not // model. -- cgit v1.3.1-4-g156e