Remove unused code from gfx and layout crates

This commit is contained in:
est31 2019-05-29 21:16:11 +02:00
parent 8dc7a25893
commit 3efc5e59bc
9 changed files with 2 additions and 222 deletions

View file

@ -105,8 +105,6 @@ fn is_simple_advance(advance: Au) -> bool {
}
}
pub type DetailedGlyphCount = u16;
// Getters and setters for GlyphEntry. Setter methods are functional,
// because GlyphEntry is immutable and only a u32 in size.
impl GlyphEntry {

View file

@ -280,10 +280,6 @@ impl<'a> TextRun {
self.font_metrics.ascent
}
pub fn descent(&self) -> Au {
self.font_metrics.descent
}
pub fn advance_for_range(&self, range: &Range<ByteIndex>) -> Au {
if range.is_empty() {
return Au(0);