Remove dead code

The height method on FontMetrics is not needed anymore. We call `text_size` nowadays.
This commit is contained in:
Simon Hausmann 2021-04-13 11:26:13 +02:00
parent f07a4ec8cf
commit f42d759131
3 changed files with 0 additions and 22 deletions

View file

@ -1420,18 +1420,6 @@ impl FontMetrics for GLFontMetrics {
}
return text.len();
}
fn height(&self) -> f32 {
self.shared_data
.canvas
.borrow_mut()
.measure_font(self.font().init_paint(
self.request.letter_spacing.unwrap_or_default(),
femtovg::Paint::default(),
))
.unwrap()
.height()
}
}
impl GLFontMetrics {