diff options
Diffstat (limited to 'src/syntax/expr.rs')
| -rw-r--r-- | src/syntax/expr.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/syntax/expr.rs b/src/syntax/expr.rs index a681aa32..3160e0e4 100644 --- a/src/syntax/expr.rs +++ b/src/syntax/expr.rs @@ -1,6 +1,5 @@ use super::*; use crate::color::RgbaColor; -use crate::eval::Slot; use crate::geom::{AngularUnit, LengthUnit}; /// An expression. @@ -51,11 +50,6 @@ pub enum Expr { If(ExprIf), /// A for expression: `#for x #in y { z }`. For(ExprFor), - /// A captured variable slot. - /// - /// This node is never created by parsing. It only results from an in-place - /// transformation of an identifier to a captured variable. - Captured(Slot), } impl Pretty for Expr { @@ -92,7 +86,6 @@ impl Pretty for Expr { Self::Let(v) => v.pretty(p), Self::If(v) => v.pretty(p), Self::For(v) => v.pretty(p), - Self::Captured(v) => v.borrow().pretty(p), } } } |
