aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/downloader/path_downloader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/downloader/path_downloader.rs')
-rw-r--r--crates/shirabe/src/downloader/path_downloader.rs17
1 files changed, 1 insertions, 16 deletions
diff --git a/crates/shirabe/src/downloader/path_downloader.rs b/crates/shirabe/src/downloader/path_downloader.rs
index 6b3531f4..a96d8db7 100644
--- a/crates/shirabe/src/downloader/path_downloader.rs
+++ b/crates/shirabe/src/downloader/path_downloader.rs
@@ -21,9 +21,7 @@ use crate::util::HttpDownloader;
use crate::util::Platform;
use crate::util::ProcessExecutor;
use indexmap::IndexMap;
-use shirabe_php_shim::{
- PhpMixed, RuntimeException, file_exists, function_exists, impl_php_class, is_dir, realpath,
-};
+use shirabe_php_shim::{PhpMixed, RuntimeException, file_exists, impl_php_class, is_dir, realpath};
use shirabe_symfony_filesystem::Filesystem as SymfonyFilesystem;
#[derive(Debug)]
@@ -160,19 +158,6 @@ impl PathDownloader {
allowed_strategies = vec![Self::STRATEGY_MIRROR];
}
- // Check we can use symlink() otherwise
- if !Platform::is_windows()
- && Self::STRATEGY_SYMLINK == current_strategy
- && !function_exists("symlink")
- {
- if !allowed_strategies.contains(&Self::STRATEGY_MIRROR) {
- return Err(RuntimeException::new("Your PHP has the symlink() function disabled which does not allow Shirabe to use symlinks and this path repository has symlink:true in its options so copying is not allowed".to_string())
- .into());
- }
- current_strategy = Self::STRATEGY_MIRROR;
- allowed_strategies = vec![Self::STRATEGY_MIRROR];
- }
-
Ok((current_strategy, allowed_strategies))
}