summaryrefslogtreecommitdiff
path: root/src/library/structure/doc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/structure/doc.rs')
-rw-r--r--src/library/structure/doc.rs29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/library/structure/doc.rs b/src/library/structure/doc.rs
deleted file mode 100644
index c3af3f1c..00000000
--- a/src/library/structure/doc.rs
+++ /dev/null
@@ -1,29 +0,0 @@
-use crate::library::layout::PageNode;
-use crate::library::prelude::*;
-
-/// A sequence of page runs.
-#[derive(Hash)]
-pub struct DocNode(pub StyleVec<PageNode>);
-
-impl DocNode {
- /// Layout the document into a sequence of frames, one per page.
- pub fn layout(
- &self,
- world: Tracked<dyn World>,
- styles: StyleChain,
- ) -> SourceResult<Vec<Frame>> {
- let mut frames = vec![];
- for (page, map) in self.0.iter() {
- let number = 1 + frames.len();
- frames.extend(page.layout(world, number, map.chain(&styles))?);
- }
- Ok(frames)
- }
-}
-
-impl Debug for DocNode {
- fn fmt(&self, f: &mut Formatter) -> fmt::Result {
- f.write_str("Doc ")?;
- self.0.fmt(f)
- }
-}