From b5046d24e0b0ea46cef71434fee6593b41927abe Mon Sep 17 00:00:00 2001 From: Daniel Hedlund Date: Sat, 7 Dec 2013 02:36:05 -0800 Subject: [PATCH] Remove orphaned gfx::text::shaper code The shaper code referenced in this issue is no longer being used. It was removed in commit a535f221469940d9549550953b845010a353d3bc, but later reintroduced due to a merge conflict in commit d64d987e1da66691ccd0e7e04fd54babc2c5bab4. Fixes #163. --- src/components/gfx/text/shaper.rs | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/components/gfx/text/shaper.rs diff --git a/src/components/gfx/text/shaper.rs b/src/components/gfx/text/shaper.rs deleted file mode 100644 index a79eab945c16..000000000000 --- a/src/components/gfx/text/shaper.rs +++ /dev/null @@ -1,27 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -/** -Shaper encapsulates a specific shaper, such as Harfbuzz, -Uniscribe, Pango, or Coretext. - -Currently, only harfbuzz bindings are implemented. -*/ -use gfx_font::Font; -use text::glyph::GlyphStore; -use text::harfbuzz; - -pub type Shaper = harfbuzz::shaper::HarfbuzzShaper; - -pub trait ShaperMethods { - fn shape_text(&self, text: &str, glyphs: &mut GlyphStore); -} - -// TODO(Issue #163): this is a workaround for static methods and -// typedefs not working well together. It should be removed. -pub impl Shaper { - pub fn new(font: &mut Font) -> Shaper { - harfbuzz::shaper::HarfbuzzShaper::new(font) - } -}