Remove a dead function.

Turns out it wasn’t actually used anymore.
This commit is contained in:
Simon Sapin 2014-01-03 10:13:08 +00:00
parent cbc82e8361
commit facac01524

View file

@ -2,7 +2,7 @@
* 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/. */
use font::{Font, FontDescriptor, FontGroup, FontHandleMethods, FontStyle,
use font::{Font, FontDescriptor, FontGroup, FontHandleMethods,
SelectorPlatformIdentifier};
use font::{SpecifiedFontStyle, UsedFontStyle};
use font_list::FontList;
@ -11,24 +11,12 @@ use servo_util::time::ProfilerChan;
use platform::font::FontHandle;
use platform::font_context::FontContextHandle;
use style::computed_values::font_weight;
use azure::azure_hl::BackendType;
use std::hashmap::HashMap;
use std::rc::RcMut;
// TODO(Rust #3934): creating lots of new dummy styles is a workaround
// for not being able to store symbolic enums in top-level constants.
pub fn dummy_style() -> FontStyle {
return FontStyle {
pt_size: 20f64,
weight: font_weight::Weight300,
italic: false,
oblique: false,
families: ~"serif, sans-serif",
}
}
pub trait FontContextHandleMethods {
fn create_font_from_identifier(&self, ~str, UsedFontStyle) -> Result<FontHandle, ()>;