servo: Remove unused font_cache.rs and font_list_handle.rs.
authorBrian J. Burg <burg@cs.washington.edu>
Wed, 07 Nov 2012 14:40:19 -0800
changeset 333220 3315caa84d9e92217a82e0e6e6931bf92d21a876
parent 333219 c34c035bbb3a9cb8f2cf420b7cb796b7e86c56ed
child 333221 264b725688e709589a6d62ddef6fa7ef12de8e86
push id31307
push usergszorc@mozilla.com
push dateSat, 04 Feb 2017 00:59:06 +0000
treeherdermozilla-central@94079d43835f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
servo: Remove unused font_cache.rs and font_list_handle.rs. Source-Repo: https://github.com/servo/servo Source-Revision: a2589dbfec134ee25e3ea59b5b2a539d4a24d7df
servo/src/servo/gfx/font_cache.rs
servo/src/servo/gfx/font_list_handle.rs
deleted file mode 100644
--- a/servo/src/servo/gfx/font_cache.rs
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
-use font::{Font, FontStyle, FontWeight300};
-use native::{FontHandle, FontContext};
-
-// Font cache that reuses gfx::Font instances.
-
-struct FontCache {
-    fctx: @FontContext,
-    mut cached_font: Option<@Font>
-}
-
-impl FontCache {
-    static pub fn new(fctx: @FontContext) -> FontCache {
-        FontCache { 
-            fctx: fctx,
-            cached_font: None
-        }
-    }
-    
-    pub fn get_test_font(@self) -> @Font {
-
-
-        return match self.cached_font {
-            Some(font) => font,
-            None => match self.get_font(&dummy_style) {
-                Ok(font) => { self.cached_font = Some(font); font }
-                Err(*) => fail
-            }
-        }
-    }
-
-    pub fn get_font(@self, style: &FontStyle) -> Result<@Font, ()> {
-        self.create_font(style)
-    }
-}
-*/
\ No newline at end of file
deleted file mode 100644