summaryrefslogtreecommitdiff
path: root/src/model/content.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-10-31 09:05:50 +0100
committerLaurenz <laurmaedje@gmail.com>2022-10-31 09:05:50 +0100
commit237feda063a3a556658f1e3e34f7f8867e800f60 (patch)
treede5d0fc18ab8407949f05503686121dd43a93c91 /src/model/content.rs
parent66ad023519e5250f88f9066a2607efe5442a7b76 (diff)
Remove semantic role handling
Diffstat (limited to 'src/model/content.rs')
-rw-r--r--src/model/content.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/model/content.rs b/src/model/content.rs
index 81c3c729..530862a2 100644
--- a/src/model/content.rs
+++ b/src/model/content.rs
@@ -11,7 +11,7 @@ use super::{
ShowNode, StyleChain, StyleEntry, StyleMap,
};
use crate::diag::{SourceResult, StrResult};
-use crate::frame::{Frame, Role};
+use crate::frame::Frame;
use crate::geom::Abs;
use crate::library::layout::{PageNode, Spacing};
use crate::library::structure::ListItem;
@@ -160,11 +160,6 @@ impl Content {
Self::Styled(Arc::new((self, styles)))
}
- /// Assign a semantic role to this content.
- pub fn role(self, role: Role) -> Self {
- self.styled_with_entry(StyleEntry::Role(role))
- }
-
/// Reenable the show rule identified by the selector.
pub fn unguard(&self, sel: Selector) -> Self {
self.clone().styled_with_entry(StyleEntry::Unguard(sel))