mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Remove and allow some dead code.
This commit is contained in:
parent
8f2d624cbf
commit
1bc0862214
28 changed files with 20 additions and 152 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue