diff options
Diffstat (limited to 'crates/shirabe/src/downloader/file_downloader.rs')
| -rw-r--r-- | crates/shirabe/src/downloader/file_downloader.rs | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/crates/shirabe/src/downloader/file_downloader.rs b/crates/shirabe/src/downloader/file_downloader.rs index 4c30f9e..702a58f 100644 --- a/crates/shirabe/src/downloader/file_downloader.rs +++ b/crates/shirabe/src/downloader/file_downloader.rs @@ -8,9 +8,9 @@ use std::sync::{LazyLock, Mutex}; use crate::util::Silencer; use shirabe_php_shim::{ DIRECTORY_SEPARATOR, InvalidArgumentException, PATHINFO_BASENAME, PATHINFO_EXTENSION, - PHP_URL_PATH, PhpMixed, RuntimeException, UnexpectedValueException, array_search, array_shift, - file_exists, filesize, get_class, hash, hash_file, in_array, is_dir, is_executable, parse_url, - pathinfo, realpath, rtrim, spl_object_hash, strlen, strpos, strtr, trim, umask, usleep, + PHP_URL_PATH, PhpMixed, RuntimeException, UnexpectedValueException, array_search, file_exists, + filesize, get_class, hash, hash_file, in_array, is_dir, is_executable, parse_url, pathinfo, + realpath, rtrim, spl_object_hash, strlen, strpos, strtr, trim, umask, usleep, }; use crate::cache::Cache; @@ -801,17 +801,3 @@ struct UrlEntry { processed: String, cache_key: String, } - -// Suppress unused-import warnings for items kept for parity with the PHP source. -#[allow(dead_code)] -fn _use_parity() { - let _ = filesize; - let _ = hash_file; - let _ = in_array; - let _ = usleep; - let _ = array_shift::<u8>; - let _ = UnexpectedValueException { - message: String::new(), - code: 0, - }; -} |
