diff options
Diffstat (limited to 'components/script/dom/svgelement.rs')
-rw-r--r-- | components/script/dom/svgelement.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/components/script/dom/svgelement.rs b/components/script/dom/svgelement.rs index c89bab166ee..3a18f965ecc 100644 --- a/components/script/dom/svgelement.rs +++ b/components/script/dom/svgelement.rs @@ -2,13 +2,10 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use dom::bindings::codegen::Bindings::SVGElementBinding; use dom::bindings::inheritance::Castable; -use dom::bindings::js::Root; use dom::bindings::str::DOMString; use dom::document::Document; use dom::element::Element; -use dom::node::Node; use dom::virtualmethods::VirtualMethods; use html5ever_atoms::LocalName; use style::element_state::ElementState; @@ -19,11 +16,6 @@ pub struct SVGElement { } impl SVGElement { - pub fn new_inherited(tag_name: LocalName, prefix: Option<DOMString>, - document: &Document) -> SVGElement { - SVGElement::new_inherited_with_state(ElementState::empty(), tag_name, prefix, document) - } - pub fn new_inherited_with_state(state: ElementState, tag_name: LocalName, prefix: Option<DOMString>, document: &Document) -> SVGElement { @@ -32,13 +24,6 @@ impl SVGElement { Element::new_inherited_with_state(state, tag_name, ns!(svg), prefix, document), } } - - #[allow(unrooted_must_root)] - pub fn new(local_name: LocalName, prefix: Option<DOMString>, document: &Document) -> Root<SVGElement> { - Node::reflect_node(box SVGElement::new_inherited(local_name, prefix, document), - document, - SVGElementBinding::Wrap) - } } impl VirtualMethods for SVGElement { |