mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Remove dead code from gfx/text
This commit is contained in:
parent
7de4ba0f82
commit
e0d98acabc
5 changed files with 4 additions and 91 deletions
|
@ -523,8 +523,9 @@ int_range_index! {
|
|||
}
|
||||
|
||||
impl<'a> GlyphStore {
|
||||
// Initializes the glyph store, but doesn't actually shape anything.
|
||||
// Use the set_glyph, set_glyphs() methods to store glyph data.
|
||||
/// Initializes the glyph store, but doesn't actually shape anything.
|
||||
///
|
||||
/// Use the `add_*` methods to store glyph data.
|
||||
pub fn new(length: usize, is_whitespace: bool) -> GlyphStore {
|
||||
assert!(length > 0);
|
||||
|
||||
|
@ -621,10 +622,6 @@ impl<'a> GlyphStore {
|
|||
self.entry_buffer[i.to_usize()] = entry;
|
||||
}
|
||||
|
||||
pub fn iter_glyphs_for_char_index(&'a self, i: CharIndex) -> GlyphIterator<'a> {
|
||||
self.iter_glyphs_for_char_range(&Range::new(i, CharIndex(1)))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn iter_glyphs_for_char_range(&'a self, rang: &Range<CharIndex>) -> GlyphIterator<'a> {
|
||||
if rang.begin() >= self.char_len() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue