diff options
Diffstat (limited to 'src/model/styles.rs')
| -rw-r--r-- | src/model/styles.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/model/styles.rs b/src/model/styles.rs index 76199ca1..d21f3a9f 100644 --- a/src/model/styles.rs +++ b/src/model/styles.rs @@ -8,7 +8,6 @@ use comemo::Tracked; use super::{Barrier, Content, Key, Property, Recipe, Selector, Show, Target}; use crate::diag::SourceResult; use crate::frame::Role; -use crate::library::text::{FontFamily, TextNode}; use crate::util::ReadableTypeId; use crate::World; @@ -55,17 +54,6 @@ impl StyleMap { } } - /// Set a font family composed of a preferred family and existing families - /// from a style chain. - pub fn set_family(&mut self, preferred: FontFamily, existing: StyleChain) { - self.set( - TextNode::FAMILY, - iter::once(preferred) - .chain(existing.get(TextNode::FAMILY).iter().cloned()) - .collect(), - ); - } - /// Whether the map contains a style property for the given key. pub fn contains<'a, K: Key<'a>>(&self, _: K) -> bool { self.0 |
