Remove dead code.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2023-07-25 06:35:51 +00:00
parent 9459045e6c
commit f10f27f28b
3 changed files with 7 additions and 16 deletions

View File

@ -24,12 +24,6 @@ class Rclone
protected LoggerInterface $logger;
protected string $rclonePath;
/**
* Global options
*
* @var array<string>
*/
protected array $globalOptions = [];
protected string $version = "";
@ -54,7 +48,7 @@ class Rclone
$this->version = explode("\n", $process->getOutput())[0];
if (!\str_contains($this->version, 'rclone')) {
throw new Exception("Rclone not recognized");
throw new Exception("rclone not recognized");
}
}
@ -126,7 +120,6 @@ class Rclone
$process = new Process(
array_merge(
[$this->rclonePath],
$this->globalOptions,
[$command],
$options
)
@ -134,7 +127,6 @@ class Rclone
$this->logger->info("Execute command", [$process->getCommandLine()]);
$process->setTimeout(4 * 3600);
$process->run();