From 6dcc2125974e350d1844c5ce1bb3562e224f3435 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 24 Jun 2026 05:14:37 +0900 Subject: refactor(php-shim): remove is_resource/is_resource_value --- crates/shirabe-php-shim/src/stream.rs | 4 ---- crates/shirabe-php-shim/src/var.rs | 5 ----- 2 files changed, 9 deletions(-) (limited to 'crates/shirabe-php-shim/src') diff --git a/crates/shirabe-php-shim/src/stream.rs b/crates/shirabe-php-shim/src/stream.rs index 2ecfc62..e5e5200 100644 --- a/crates/shirabe-php-shim/src/stream.rs +++ b/crates/shirabe-php-shim/src/stream.rs @@ -240,10 +240,6 @@ pub fn stream_get_contents3(stream: &PhpResource, max_length: i64, offset: i64) stream_read_remaining(stream, max) } -pub fn is_resource_value(_resource: &PhpResource) -> bool { - true -} - pub fn get_resource_type(resource: &PhpResource) -> String { match resource { PhpResource::Process(_) => "process".to_string(), diff --git a/crates/shirabe-php-shim/src/var.rs b/crates/shirabe-php-shim/src/var.rs index 0dc7523..adaacec 100644 --- a/crates/shirabe-php-shim/src/var.rs +++ b/crates/shirabe-php-shim/src/var.rs @@ -137,11 +137,6 @@ pub fn is_a(_object_or_class: &PhpMixed, _class: &str, _allow_string: bool) -> b todo!() } -pub fn is_resource(_value: &PhpMixed) -> bool { - // PhpMixed has no resource variant, so a PhpMixed is never a resource. - false -} - pub fn is_array(_value: &PhpMixed) -> bool { matches!(_value, PhpMixed::List(_) | PhpMixed::Array(_)) } -- cgit v1.3.1