Kill some unused code

This commit is contained in:
greg 2017-10-01 00:50:13 -07:00
parent f825c87397
commit daf9878020
2 changed files with 4 additions and 3 deletions

View File

@ -17,8 +17,9 @@ impl ReplState {
format!("Evaluated AST: {:?}", ast) format!("Evaluated AST: {:?}", ast)
} }
pub fn type_check(&mut self, ast: &AST) -> TypeCheck { pub fn type_check(&mut self, _ast: &AST) -> TypeCheck {
TypeCheck::Error("type lol".to_string()) //TypeCheck::Error("type lol".to_string())
TypeCheck::OK
} }
} }

View File

@ -619,7 +619,7 @@ impl Parser {
Colon => Some(self.type_anno()?), Colon => Some(self.type_anno()?),
_ => None _ => None
}; };
if let Some(a) = expr_body.1 { if let Some(_) = expr_body.1 {
return ParseError::new("Bad parse state"); return ParseError::new("Bad parse state");
} }
expr_body.1 = type_anno; expr_body.1 = type_anno;