Skip to content

Commit

Permalink
Remove unused Servo_RestyleDocument function.
Browse files Browse the repository at this point in the history
  • Loading branch information
heycam committed Sep 22, 2016
1 parent 614e9ca commit d563b49
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions ports/geckolib/gecko_bindings/bindings.rs
Expand Up @@ -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);
Expand Down
10 changes: 0 additions & 10 deletions ports/geckolib/glue.rs
Expand Up @@ -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
Expand Down

0 comments on commit d563b49

Please sign in to comment.