aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/package/locker.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-21 20:27:13 +0900
committernsfisis <nsfisis@gmail.com>2026-06-21 20:27:13 +0900
commite283399a0304846bbff8484f455c50ecb3de7048 (patch)
tree0035845f7d362108b51b9358c8a02465bbdcf7b2 /crates/shirabe/src/package/locker.rs
parente4402e52c08b8b28497151302c994793ce885cc3 (diff)
downloadphp-shirabe-e283399a0304846bbff8484f455c50ecb3de7048.tar.gz
php-shirabe-e283399a0304846bbff8484f455c50ecb3de7048.tar.zst
php-shirabe-e283399a0304846bbff8484f455c50ecb3de7048.zip
refactor(php-shim): drop reset()/reset_first()/end_arr() array helpers
These slice/map wrappers mirrored PHP's internal array pointer and have no clean Rust equivalent. Remove them and replace the lone caller with direct first-element access; the rest were unused imports. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/package/locker.rs')
-rw-r--r--crates/shirabe/src/package/locker.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/shirabe/src/package/locker.rs b/crates/shirabe/src/package/locker.rs
index 8237d76..155d5d4 100644
--- a/crates/shirabe/src/package/locker.rs
+++ b/crates/shirabe/src/package/locker.rs
@@ -8,7 +8,7 @@ use shirabe_external_packages::seld::json_lint::ParsingException;
use shirabe_php_shim::{
DATE_RFC3339, LogicException, PhpMixed, RuntimeException, array_intersect, array_keys,
array_map, array_merge, file_get_contents, filemtime, function_exists, hash, in_array, is_int,
- ksort, realpath, reset_first, sprintf, strcmp, strtolower, touch2, trim, usort,
+ ksort, realpath, sprintf, strcmp, strtolower, touch2, trim, usort,
};
use crate::installer::InstallationManager;