More unused code removal

This commit is contained in:
greg 2018-08-19 15:06:01 -07:00
parent 492ef4ae19
commit 04ea8c5ebc

View File

@ -106,7 +106,7 @@ impl Expr {
UserDefined { name: Some(name), .. } => format!("<function '{}'>", name), UserDefined { name: Some(name), .. } => format!("<function '{}'>", name),
}, },
Expr::Constructor { Expr::Constructor {
type_name, name, tag, arity, type_name: _, name, tag, arity,
} => if *arity == 0 { } => if *arity == 0 {
format!("{}", name) format!("{}", name)
} else { } else {
@ -281,7 +281,7 @@ impl<'a> State<'a> {
let evaled_args: Result<Vec<Expr>, String> = args.into_iter().map(|arg| { let evaled_args: Result<Vec<Expr>, String> = args.into_iter().map(|arg| {
match self.expression(Node::Expr(arg)) { match self.expression(Node::Expr(arg)) {
Ok(Node::Expr(e)) => Ok(e), Ok(Node::Expr(e)) => Ok(e),
Ok(Node::PrimTuple { items }) => Err(format!("Trying to apply a builtin to a tuple")), Ok(Node::PrimTuple { .. }) => Err(format!("Trying to apply a builtin to a tuple")),
Ok(Node::PrimObject { .. }) => Err(format!("Trying to apply a builtin to a primitive object")), Ok(Node::PrimObject { .. }) => Err(format!("Trying to apply a builtin to a primitive object")),
Err(e) => Err(e) Err(e) => Err(e)
} }