From 529d3e10c6b4d973e88b6c295eb22a45ea426e42 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 11 Mar 2023 17:42:40 +0100 Subject: Section references --- library/src/layout/mod.rs | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'library/src/layout') diff --git a/library/src/layout/mod.rs b/library/src/layout/mod.rs index dc373ff5..eb440b7f 100644 --- a/library/src/layout/mod.rs +++ b/library/src/layout/mod.rs @@ -232,20 +232,6 @@ impl<'a, 'v, 't> Builder<'a, 'v, 't> { self.scratch.content.alloc(FormulaNode::new(content.clone()).pack()); } - // Prepare only if this is the first application for this node. - if content.can::() { - if !content.is_prepared() { - let prepared = content - .clone() - .prepared() - .with::() - .unwrap() - .prepare(self.vt, styles)?; - let stored = self.scratch.content.alloc(prepared); - return self.accept(stored, styles); - } - } - if let Some(styled) = content.to::() { return self.styled(styled, styles); } -- cgit v1.2.3