aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Bergstrom <lbergstrom@mozilla.com>2013-12-07 09:53:12 -0800
committerLars Bergstrom <lbergstrom@mozilla.com>2013-12-07 09:53:12 -0800
commit76e3b34c758fc732414ae2e3008f4c57b7b94c90 (patch)
tree97e48379a62a8f403d24601deace5c2f5da5d9e1 /src
parent030e3073c0e25028f5ad7f15ddeacf4a6ef21021 (diff)
parentb5046d24e0b0ea46cef71434fee6593b41927abe (diff)
downloadservo-76e3b34c758fc732414ae2e3008f4c57b7b94c90.tar.gz
servo-76e3b34c758fc732414ae2e3008f4c57b7b94c90.zip
Merge pull request #1348 from dhedlund/issue_163
Remove orphaned gfx::text::shaper code
Diffstat (limited to 'src')
-rw-r--r--src/components/gfx/text/shaper.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/components/gfx/text/shaper.rs b/src/components/gfx/text/shaper.rs
deleted file mode 100644
index a79eab945c1..00000000000
--- 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)
- }
-}