mirror of
https://github.com/servo/servo.git
synced 2025-09-11 23:48:21 +01:00
Remove unused children_count method from TNode.
The semantics of this method with respect to anonymous children are unclear. Thankfully it's unused, so we can remove it.
This commit is contained in:
parent
b56297f2a5
commit
1799b0a5df
3 changed files with 0 additions and 13 deletions
|
@ -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)) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue