summaryrefslogtreecommitdiffstats
path: root/src/parse/ast.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/ast.rs')
-rw-r--r--src/parse/ast.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/parse/ast.rs b/src/parse/ast.rs
index 3008ef9..ca568eb 100644
--- a/src/parse/ast.rs
+++ b/src/parse/ast.rs
@@ -89,7 +89,6 @@ impl Command {
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Pipeline {
exes: Vec<Exe>,
- input_string: String,
}
impl Pipeline {
@@ -99,16 +98,10 @@ impl Pipeline {
}
}
- pub fn input_string(&self) -> &str {
- &self.input_string
- }
-
fn build_ast(pipeline: pest::iterators::Pair<Rule>) -> Self {
assert!(matches!(pipeline.as_rule(), Rule::pipeline));
- let input_string = pipeline.as_str().to_string();
Self {
exes: pipeline.into_inner().map(Exe::build_ast).collect(),
- input_string,
}
}
}