summaryrefslogtreecommitdiff
path: root/library/src/text
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-18 15:33:06 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-19 22:40:42 +0100
commit1937d746abf19a5c1142db546912dbed0e6711fb (patch)
tree287a7462720698347361be5d34d61cf7bf3dce45 /library/src/text
parent9b8c1dc19fcda399f00e486460b4cc521d1a460b (diff)
Show everything!
Diffstat (limited to 'library/src/text')
-rw-r--r--library/src/text/deco.rs4
-rw-r--r--library/src/text/link.rs8
-rw-r--r--library/src/text/mod.rs8
-rw-r--r--library/src/text/raw.rs4
-rw-r--r--library/src/text/shift.rs4
5 files changed, 0 insertions, 28 deletions
diff --git a/library/src/text/deco.rs b/library/src/text/deco.rs
index bc7a312d..7db7fa1b 100644
--- a/library/src/text/deco.rs
+++ b/library/src/text/deco.rs
@@ -47,10 +47,6 @@ impl<const L: DecoLine> DecoNode<L> {
}
impl<const L: DecoLine> Show for DecoNode<L> {
- fn unguard_parts(&self, id: RecipeId) -> Content {
- Self(self.0.unguard(id)).pack()
- }
-
fn show(&self, _: Tracked<dyn World>, styles: StyleChain) -> SourceResult<Content> {
Ok(self.0.clone().styled(
TextNode::DECO,
diff --git a/library/src/text/link.rs b/library/src/text/link.rs
index acd37df6..45e7c7ec 100644
--- a/library/src/text/link.rs
+++ b/library/src/text/link.rs
@@ -50,14 +50,6 @@ impl LinkNode {
}
impl Show for LinkNode {
- fn unguard_parts(&self, id: RecipeId) -> Content {
- Self {
- dest: self.dest.clone(),
- body: self.body.unguard(id),
- }
- .pack()
- }
-
fn show(&self, _: Tracked<dyn World>, _: StyleChain) -> SourceResult<Content> {
Ok(self.body.clone())
}
diff --git a/library/src/text/mod.rs b/library/src/text/mod.rs
index 6cf1e1c5..d36f8db5 100644
--- a/library/src/text/mod.rs
+++ b/library/src/text/mod.rs
@@ -528,10 +528,6 @@ impl StrongNode {
}
impl Show for StrongNode {
- fn unguard_parts(&self, id: RecipeId) -> Content {
- Self(self.0.unguard(id)).pack()
- }
-
fn show(&self, _: Tracked<dyn World>, _: StyleChain) -> SourceResult<Content> {
Ok(self.0.clone().styled(TextNode::BOLD, Toggle))
}
@@ -556,10 +552,6 @@ impl EmphNode {
}
impl Show for EmphNode {
- fn unguard_parts(&self, id: RecipeId) -> Content {
- Self(self.0.unguard(id)).pack()
- }
-
fn show(&self, _: Tracked<dyn World>, _: StyleChain) -> SourceResult<Content> {
Ok(self.0.clone().styled(TextNode::ITALIC, Toggle))
}
diff --git a/library/src/text/raw.rs b/library/src/text/raw.rs
index d7dae244..f13fd394 100644
--- a/library/src/text/raw.rs
+++ b/library/src/text/raw.rs
@@ -43,10 +43,6 @@ impl RawNode {
}
impl Show for RawNode {
- fn unguard_parts(&self, _: RecipeId) -> Content {
- Self { text: self.text.clone(), ..*self }.pack()
- }
-
fn show(&self, _: Tracked<dyn World>, styles: StyleChain) -> SourceResult<Content> {
let lang = styles.get(Self::LANG).as_ref().map(|s| s.to_lowercase());
let foreground = THEME
diff --git a/library/src/text/shift.rs b/library/src/text/shift.rs
index a91285bf..32f110c6 100644
--- a/library/src/text/shift.rs
+++ b/library/src/text/shift.rs
@@ -43,10 +43,6 @@ impl<const S: ShiftKind> ShiftNode<S> {
}
impl<const S: ShiftKind> Show for ShiftNode<S> {
- fn unguard_parts(&self, _: RecipeId) -> Content {
- Self(self.0.clone()).pack()
- }
-
fn show(
&self,
world: Tracked<dyn World>,