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 ca568eb..37e7fe0 100644
--- a/src/parse/ast.rs
+++ b/src/parse/ast.rs
@@ -9,7 +9,6 @@ struct Shell;
#[derive(Debug, PartialEq, Eq)]
pub struct Commands {
commands: Vec<Command>,
- input_string: String,
}
impl Commands {
@@ -29,16 +28,10 @@ impl Commands {
&self.commands
}
- pub fn input_string(&self) -> &str {
- &self.input_string
- }
-
fn build_ast(commands: pest::iterators::Pair<Rule>) -> Self {
assert!(matches!(commands.as_rule(), Rule::commands));
- let input_string = commands.as_str().to_string();
Self {
commands: commands.into_inner().map(Command::build_ast).collect(),
- input_string,
}
}
}