summaryrefslogtreecommitdiff
path: root/src/model/styles.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/styles.rs')
-rw-r--r--src/model/styles.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/model/styles.rs b/src/model/styles.rs
index 7db2df42..7d16f4ba 100644
--- a/src/model/styles.rs
+++ b/src/model/styles.rs
@@ -37,13 +37,6 @@ impl StyleMap {
styles
}
- /// Create a style map from a single role.
- pub fn with_role(role: Role) -> Self {
- let mut styles = Self::new();
- styles.push(StyleEntry::Role(role));
- styles
- }
-
/// Set an inner value for a style property.
///
/// If the property needs folding and the value is already contained in the