mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Remove unneeded add_nonglyph_for_char_index
This is a no-op, since a "non-glyph" is simply `GlyphEntry(0)`. This is the same as `GlyphEntry::initial()`, which all the entries are already initialized to.
This commit is contained in:
parent
97a58e9689
commit
dba878dfb2
2 changed files with 1 additions and 20 deletions
|
@ -517,19 +517,6 @@ impl<'a> GlyphStore {
|
|||
self.entry_buffer[i.to_usize()] = entry;
|
||||
}
|
||||
|
||||
// used when a character index has no associated glyph---for example, a ligature continuation.
|
||||
pub fn add_nonglyph_for_char_index(&mut self,
|
||||
i: CharIndex,
|
||||
cluster_start: bool,
|
||||
ligature_start: bool) {
|
||||
assert!(i < self.char_len());
|
||||
|
||||
let entry = GlyphEntry::complex(cluster_start, ligature_start, 0);
|
||||
debug!("adding spacer for character without associated glyph[idx={:?}]", i);
|
||||
|
||||
self.entry_buffer[i.to_usize()] = entry;
|
||||
}
|
||||
|
||||
#[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