Remove unused overlay_font in iced_glow

This commit is contained in:
Héctor Ramón Jiménez 2020-05-21 19:08:04 +02:00
parent 60dcfc354e
commit 2798d4935e

View File

@ -36,9 +36,13 @@ impl Pipeline {
let (brush_builder, measure_brush) = load_glyph_brush(default_font)
.unwrap_or_else(|_: glow_glyph::rusttype::Error| {
log::warn!("System font failed to load. Falling back to embedded font...");
log::warn!(
"System font failed to load. \
Falling back to embedded font..."
);
load_glyph_brush(font::FALLBACK.to_vec()).expect("Load fallback font")
load_glyph_brush(font::FALLBACK.to_vec())
.expect("Load fallback font")
});
let draw_brush =
@ -52,10 +56,6 @@ impl Pipeline {
}
}
pub fn overlay_font(&self) -> glow_glyph::FontId {
glow_glyph::FontId(0)
}
pub fn queue(&mut self, section: glow_glyph::Section<'_>) {
self.draw_brush.borrow_mut().queue(section);
}