mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Remove a dead function.
Turns out it wasn’t actually used anymore.
This commit is contained in:
parent
cbc82e8361
commit
facac01524
1 changed files with 1 additions and 13 deletions
|
@ -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, ()>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue