diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs index c22bb367b60..25aa83a3cc2 100644 --- a/components/layout/wrapper.rs +++ b/components/layout/wrapper.rs @@ -202,14 +202,6 @@ impl<'ln> TLayoutNode for LayoutNode<'ln> { } impl<'ln> LayoutNode<'ln> { - /// Creates a new layout node, scoped to the given closure. - pub unsafe fn with_layout_node(node: JS, f: for <'a> |LayoutNode<'a>| -> R) -> R { - f(LayoutNode { - node: node, - chain: ContravariantLifetime, - }) - } - pub fn dump(self) { self.dump_indent(0); }