From fa85d5f312c16da752112e34baa9785679ffe74c Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Wed, 30 Sep 2015 09:41:53 -0700 Subject: [PATCH] Remove unneeded adapt_character_flags_of_entry --- components/gfx/text/glyph.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/components/gfx/text/glyph.rs b/components/gfx/text/glyph.rs index 713a1caa708..bd8d79cab83 100644 --- a/components/gfx/text/glyph.rs +++ b/components/gfx/text/glyph.rs @@ -147,11 +147,6 @@ impl GlyphEntry { fn has_flag(&self, flag: u32) -> bool { (self.value & flag) != 0 } - - #[inline(always)] - fn adapt_character_flags_of_entry(&self, other: GlyphEntry) -> GlyphEntry { - GlyphEntry { value: self.value | other.value } - } } // Stores data for a detailed glyph, in the case that several glyphs @@ -515,7 +510,7 @@ impl<'a> GlyphStore { first_glyph_data.ligature_start, glyph_count) } - }.adapt_character_flags_of_entry(self.entry_buffer[i.to_usize()]); + }; debug!("Adding multiple glyphs[idx={:?}, count={}]: {:?}", i, glyph_count, entry);