diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-02-02 20:33:19 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-02-02 20:33:19 +0100 |
| commit | 20a1fd8bc7749f859aaef268d0add9c4bc11c4bd (patch) | |
| tree | 1faeb8c22c45a446310326c90f4b1c912595219d /src/eval/mod.rs | |
| parent | c5e05ac0eacefcb621f8cae7a0ddfa8bd526bf21 (diff) | |
Remove root node
Diffstat (limited to 'src/eval/mod.rs')
| -rw-r--r-- | src/eval/mod.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/eval/mod.rs b/src/eval/mod.rs index aa75f8b7..22bea7d1 100644 --- a/src/eval/mod.rs +++ b/src/eval/mod.rs @@ -40,7 +40,7 @@ use unicode_segmentation::UnicodeSegmentation; use crate::diag::{At, Error, StrResult, Trace, Tracepoint, TypResult}; use crate::geom::{Angle, Color, Fractional, Length, Paint, Relative}; use crate::image::ImageStore; -use crate::layout::RootNode; +use crate::layout::Layout; use crate::library::{self, DecoLine, TextNode}; use crate::loading::Loader; use crate::parse; @@ -66,13 +66,6 @@ pub struct Module { pub template: Template, } -impl Module { - /// Convert this module's template into a layout tree. - pub fn into_root(self) -> RootNode { - self.template.into_root() - } -} - /// Evaluate an expression. pub trait Eval { /// The output of evaluating the expression. |
