Skip to content

Commit

Permalink
style: Remove unused TNode::is_in_doc.
Browse files Browse the repository at this point in the history
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
  • Loading branch information
emilio committed Oct 17, 2017
1 parent 7afe393 commit 96b7175
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions components/layout_thread/dom_wrapper.rs
Expand Up @@ -213,10 +213,6 @@ impl<'ln> TNode for ServoLayoutNode<'ln> {
unsafe fn set_can_be_fragmented(&self, value: bool) {
self.node.set_flag(CAN_BE_FRAGMENTED, value)
}

fn is_in_doc(&self) -> bool {
unsafe { (*self.node.unsafe_get()).is_in_doc() }
}
}

impl<'ln> LayoutNode for ServoLayoutNode<'ln> {
Expand Down
4 changes: 0 additions & 4 deletions components/style/dom.rs
Expand Up @@ -160,10 +160,6 @@ pub trait TNode : Sized + Copy + Clone + Debug + NodeInfo {

/// Set whether this node can be fragmented.
unsafe fn set_can_be_fragmented(&self, value: bool);

/// Whether this node is in the document right now needed to clear the
/// restyle data appropriately on some forced restyles.
fn is_in_doc(&self) -> bool;
}

/// Wrapper to output the ElementData along with the node when formatting for
Expand Down
4 changes: 0 additions & 4 deletions components/style/gecko/wrapper.rs
Expand Up @@ -270,10 +270,6 @@ impl<'ln> TNode for GeckoNode<'ln> {
// FIXME(SimonSapin): Servo uses this to implement CSS multicol / fragmentation
// Maybe this isn’t useful for Gecko?
}

fn is_in_doc(&self) -> bool {
unsafe { bindings::Gecko_IsInDocument(self.0) }
}
}

/// A wrapper on top of two kind of iterators, depending on the parent being
Expand Down

0 comments on commit 96b7175

Please sign in to comment.