aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/script/layout_wrapper.rs4
-rw-r--r--components/style/dom.rs2
-rw-r--r--ports/geckolib/wrapper.rs7
3 files changed, 0 insertions, 13 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs
index 47ecc910345..906bde60550 100644
--- a/components/script/layout_wrapper.rs
+++ b/components/script/layout_wrapper.rs
@@ -170,10 +170,6 @@ impl<'ln> TNode for ServoLayoutNode<'ln> {
self.opaque().0
}
- fn children_count(&self) -> u32 {
- unsafe { self.node.children_count() }
- }
-
fn as_element(&self) -> Option<ServoLayoutElement<'ln>> {
as_element(self.node)
}
diff --git a/components/style/dom.rs b/components/style/dom.rs
index 41bab451b76..ce7ba70a1bf 100644
--- a/components/style/dom.rs
+++ b/components/style/dom.rs
@@ -100,8 +100,6 @@ pub trait TNode : Sized + Copy + Clone {
fn as_document(&self) -> Option<Self::ConcreteDocument>;
- fn children_count(&self) -> u32;
-
fn has_changed(&self) -> bool;
unsafe fn set_changed(&self, value: bool);
diff --git a/ports/geckolib/wrapper.rs b/ports/geckolib/wrapper.rs
index 961fc5b06ef..5258caa36b4 100644
--- a/ports/geckolib/wrapper.rs
+++ b/ports/geckolib/wrapper.rs
@@ -5,7 +5,6 @@
#![allow(unsafe_code)]
use gecko_bindings::bindings;
-use gecko_bindings::bindings::Gecko_ChildrenCount;
use gecko_bindings::bindings::Gecko_ClassOrClassList;
use gecko_bindings::bindings::Gecko_GetNodeData;
use gecko_bindings::bindings::Gecko_GetStyleContext;
@@ -187,12 +186,6 @@ impl<'ln> TNode for GeckoNode<'ln> {
unimplemented!()
}
- fn children_count(&self) -> u32 {
- unsafe {
- Gecko_ChildrenCount(self.node)
- }
- }
-
fn as_element(&self) -> Option<GeckoElement<'ln>> {
if self.is_element() {
unsafe { Some(GeckoElement::from_raw(self.node as *mut RawGeckoElement)) }