mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Remove unused code from gfx and layout crates
This commit is contained in:
parent
8dc7a25893
commit
3efc5e59bc
9 changed files with 2 additions and 222 deletions
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue