summaryrefslogtreecommitdiff
path: root/library/src/ext.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/ext.rs')
-rw-r--r--library/src/ext.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/library/src/ext.rs b/library/src/ext.rs
index 70b69dce..0735dc18 100644
--- a/library/src/ext.rs
+++ b/library/src/ext.rs
@@ -12,9 +12,6 @@ pub trait ContentExt {
/// Underline this content.
fn underlined(self) -> Self;
- /// Add weak vertical spacing above and below the content.
- fn spaced(self, above: Option<Abs>, below: Option<Abs>) -> Self;
-
/// Force a size for this content.
fn boxed(self, sizing: Axes<Option<Rel<Length>>>) -> Self;
@@ -47,30 +44,6 @@ impl ContentExt for Content {
text::DecoNode::<{ text::UNDERLINE }>(self).pack()
}
- fn spaced(self, above: Option<Abs>, below: Option<Abs>) -> Self {
- if above.is_none() && below.is_none() {
- return self;
- }
-
- let mut seq = vec![];
- if let Some(above) = above {
- seq.push(
- layout::VNode { amount: above.into(), weak: true, generated: true }
- .pack(),
- );
- }
-
- seq.push(self);
- if let Some(below) = below {
- seq.push(
- layout::VNode { amount: below.into(), weak: true, generated: true }
- .pack(),
- );
- }
-
- Content::sequence(seq)
- }
-
fn boxed(self, sizing: Axes<Option<Rel<Length>>>) -> Self {
layout::BoxNode { sizing, child: self }.pack()
}