diff options
Diffstat (limited to 'crates/shirabe-php-shim/src')
| -rw-r--r-- | crates/shirabe-php-shim/src/stream.rs | 4 | ||||
| -rw-r--r-- | crates/shirabe-php-shim/src/var.rs | 5 |
2 files changed, 0 insertions, 9 deletions
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(_)) } |
