stylo: remove unused Servo_StyleContext_NewContext.

MozReview-Commit-ID: A9BSuTw0GR8
This commit is contained in:
Emilio Cobos Álvarez 2017-07-18 11:05:09 +02:00
parent 6b8649e012
commit 1bce64f67b
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -1737,19 +1737,6 @@ pub extern "C" fn Servo_ComputedValues_Inherit(
style.to_outer(data.stylist.device(), parent_style_context, pseudo_info).into_strong() style.to_outer(data.stylist.device(), parent_style_context, pseudo_info).into_strong()
} }
#[no_mangle]
pub extern "C" fn Servo_StyleContext_NewContext(values: ServoComputedValuesBorrowed,
parent: ServoStyleContextBorrowedOrNull,
pres_context: bindings::RawGeckoPresContextBorrowed,
pseudo_type: CSSPseudoElementType,
pseudo_tag: *mut nsIAtom)
-> ServoStyleContextStrong {
unsafe {
(*values).clone().to_outer_helper(pres_context, parent,
pseudo_type, pseudo_tag).into_strong()
}
}
#[no_mangle] #[no_mangle]
pub extern "C" fn Servo_ComputedValues_GetStyleBits(values: ServoComputedValuesBorrowed) -> u64 { pub extern "C" fn Servo_ComputedValues_GetStyleBits(values: ServoComputedValuesBorrowed) -> u64 {
use style::properties::computed_value_flags::*; use style::properties::computed_value_flags::*;