mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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,12 +2,9 @@
|
|||
* 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::SVGGraphicsElementBinding;
|
||||
use dom::bindings::inheritance::Castable;
|
||||
use dom::bindings::js::Root;
|
||||
use dom::bindings::str::DOMString;
|
||||
use dom::document::Document;
|
||||
use dom::node::Node;
|
||||
use dom::svgelement::SVGElement;
|
||||
use dom::virtualmethods::VirtualMethods;
|
||||
use html5ever_atoms::LocalName;
|
||||
|
@ -32,13 +29,6 @@ impl SVGGraphicsElement {
|
|||
SVGElement::new_inherited_with_state(state, tag_name, prefix, document),
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
pub fn new(local_name: LocalName, prefix: Option<DOMString>, document: &Document) -> Root<SVGGraphicsElement> {
|
||||
Node::reflect_node(box SVGGraphicsElement::new_inherited(local_name, prefix, document),
|
||||
document,
|
||||
SVGGraphicsElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
impl VirtualMethods for SVGGraphicsElement {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue