diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-10-30 11:34:38 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-10-30 11:35:33 +0100 |
commit | d7d90ea6922be8da99d5d055415c5281d0d314c1 (patch) | |
tree | 19b3a47f6ce4ad6a188b7642ce1fb8433a650223 /src/util | |
parent | 8938c38cb6849a40bce6b3105c7972ecad9b026d (diff) |
Remove "Executor"
The Executor type was supposed to execute the dependency scripts and
return a list of dependencies the script(s) printed.
As we removed the idea of dependency-scripts, we can remove the Executor
type as well.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/executor.rs | 22 | ||||
-rw-r--r-- | src/util/mod.rs | 1 |
2 files changed, 0 insertions, 23 deletions
diff --git a/src/util/executor.rs b/src/util/executor.rs deleted file mode 100644 index f5a632f..0000000 --- a/src/util/executor.rs +++ /dev/null @@ -1,22 +0,0 @@ -use std::path::Path; -use anyhow::Result; - -use crate::package::Dependency; - -pub trait Executor { - fn execute_dependency_script(&self, scriptpath: &Path) -> Result<Vec<Dependency>>; -} - -pub struct DummyExecutor; -impl DummyExecutor { - pub fn new() -> Self { - DummyExecutor - } -} - -impl Executor for DummyExecutor { - fn execute_dependency_script(&self, _scriptpath: &Path) -> Result<Vec<Dependency>> { - Ok(vec![]) - } -} - diff --git a/src/util/mod.rs b/src/util/mod.rs index 2a1177b..f6b246e 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -3,7 +3,6 @@ use serde::Deserialize; #[derive(Deserialize, Debug, Hash, Eq, PartialEq, Ord, PartialOrd)] pub struct EnvironmentVariableName(String); -pub mod executor; pub mod filters; pub mod parser; pub mod progress; |