kill some non-used variable warnings

This commit is contained in:
greg 2017-10-02 01:52:46 -07:00
parent 7430aebe63
commit 3ff4a34aeb
1 changed files with 2 additions and 4 deletions

View File

@ -11,7 +11,6 @@ enum FullyEvaluatedExpr {
Float(f64), Float(f64),
Str(String), Str(String),
Bool(bool), Bool(bool),
Other
} }
impl ReplState { impl ReplState {
@ -50,7 +49,6 @@ impl ReplState {
Float(f) => Some(format!("{}", f)), Float(f) => Some(format!("{}", f)),
Str(s) => Some(format!("\"{}\"", s)), Str(s) => Some(format!("\"{}\"", s)),
Bool(b) => Some(format!("{}", b)), Bool(b) => Some(format!("{}", b)),
Other => None,
} }
}) })
}, },
@ -60,7 +58,7 @@ impl ReplState {
} }
} }
fn eval_decl(&mut self, decl: Declaration) -> EvalResult<()> { fn eval_decl(&mut self, _decl: Declaration) -> EvalResult<()> {
Err("Not implmemented".to_string()) Err("Not implmemented".to_string())
} }
@ -94,7 +92,7 @@ impl ReplState {
use self::ExpressionType::*; use self::ExpressionType::*;
for statement in ast.0.iter() { for statement in ast.0.iter() {
match statement { match statement {
&Statement::Declaration(ref decl) => { &Statement::Declaration(ref _decl) => {
return TypeCheck::new("Declarations not supported"); return TypeCheck::new("Declarations not supported");
}, },
&Statement::ExpressionStatement(ref expr) => { &Statement::ExpressionStatement(ref expr) => {