Remove unused Servo_RestyleDocument function.

This commit is contained in:
Cameron McCormack 2016-09-22 14:30:12 +08:00
parent 614e9ca840
commit d563b498e8
2 changed files with 0 additions and 14 deletions

View file

@ -943,10 +943,6 @@ extern "C" {
set: RawServoStyleSetBorrowed)
-> nsRestyleHint;
}
extern "C" {
pub fn Servo_RestyleDocument(doc: RawGeckoDocumentBorrowed,
set: RawServoStyleSetBorrowedMut);
}
extern "C" {
pub fn Servo_RestyleSubtree(node: RawGeckoNodeBorrowed,
set: RawServoStyleSetBorrowedMut);

View file

@ -120,16 +120,6 @@ pub extern "C" fn Servo_RestyleSubtree(node: RawGeckoNodeBorrowed,
restyle_subtree(node, raw_data);
}
#[no_mangle]
pub extern "C" fn Servo_RestyleDocument(doc: RawGeckoDocumentBorrowed, raw_data: RawServoStyleSetBorrowedMut) -> () {
let document = GeckoDocument(doc);
let node = match document.root_node() {
Some(x) => x,
None => return,
};
restyle_subtree(node, raw_data);
}
#[no_mangle]
pub extern "C" fn Servo_StyleWorkerThreadCount() -> u32 {
*NUM_THREADS as u32