From 20a876d44a7f7fe8f5d4cc77eb79a9a359aaf150 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 9 Aug 2026 07:47:48 +0900 Subject: refactor(php-shim): remove shim functions with no callers Co-Authored-By: Claude Opus 5 --- crates/shirabe-php-shim/src/runtime.rs | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'crates/shirabe-php-shim/src/runtime.rs') diff --git a/crates/shirabe-php-shim/src/runtime.rs b/crates/shirabe-php-shim/src/runtime.rs index ed159abb..b95c594f 100644 --- a/crates/shirabe-php-shim/src/runtime.rs +++ b/crates/shirabe-php-shim/src/runtime.rs @@ -368,11 +368,6 @@ pub fn require_php_file(_filename: &str) -> PhpMixed { todo!() } -pub fn php_require(_file: &str) -> PhpMixed { - // TODO(php-runtime): see require_php_file. - todo!() -} - pub fn memory_get_usage() -> i64 { // TODO(phase-c): return PHP's actual emalloc-tracked memory usage instead of a stub 0. 0 @@ -407,21 +402,6 @@ pub fn error_get_last() -> Option> { None } -pub fn globals_get(_name: &str) -> PhpMixed { - // TODO(php-runtime): the PHP $GLOBALS superglobal is not modeled in the shim. - todo!() -} - -pub fn globals_set(_name: &str, _value: PhpMixed) { - // TODO(php-runtime): the PHP $GLOBALS superglobal is not modeled in the shim. - todo!() -} - -pub fn clone(_value: T) -> T { - // PHP's `clone` makes a (shallow) copy of an object; Rust's Clone is the closest equivalent. - _value -} - pub fn ini_set(_varname: &str, _value: &str) -> Option { // TODO(php-runtime): ini_set must return the previous value and have its override observed by a // subsequent ini_get; ini_get is currently a static lookup, so overrides cannot be wired up yet. -- cgit v1.3.1-4-g156e