diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-12-01 10:19:45 -0500 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-12-27 02:52:33 +0530 |
commit | 552db382d6fc868be3bc6aeb500915953f5e0ea3 (patch) | |
tree | 5cad6b6debca39cbe6a627b77fe9b6773b87006d /components/script/dom/domimplementation.rs | |
parent | 21607f066ca07a68a6fe84acad373de5da45523f (diff) | |
download | servo-552db382d6fc868be3bc6aeb500915953f5e0ea3.tar.gz servo-552db382d6fc868be3bc6aeb500915953f5e0ea3.zip |
Remove manual impls of Reflectors (autogen)
Obtained via:
`find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/\\nimpl Reflectable for[^{]*{[^}]*}[^}]*}\\n//"`
`find . -maxdepth 1 -type f -print0 |xargs -0 grep -lZ dom_struct | xargs -0 grep -LZ "reflector()\\|Reflector::new" |xargs -0 sed -z -i "s/use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};/use dom::bindings::utils::reflect_dom_object;/"`
followed by semi-automated removal of leftover imports
Diffstat (limited to 'components/script/dom/domimplementation.rs')
-rw-r--r-- | components/script/dom/domimplementation.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/components/script/dom/domimplementation.rs b/components/script/dom/domimplementation.rs index 45be86c538a..c9e6988f216 100644 --- a/components/script/dom/domimplementation.rs +++ b/components/script/dom/domimplementation.rs @@ -11,7 +11,7 @@ use dom::bindings::error::Fallible; use dom::bindings::error::Error::{InvalidCharacter, NamespaceError}; use dom::bindings::global::GlobalRef; use dom::bindings::js::{JS, JSRef, Root, Temporary, OptionalRootable}; -use dom::bindings::utils::{Reflector, Reflectable, reflect_dom_object}; +use dom::bindings::utils::{Reflector, reflect_dom_object}; use dom::bindings::utils::xml_name_type; use dom::bindings::utils::XMLName::{QName, Name, InvalidXMLName}; use dom::document::{Document, DocumentHelpers, IsHTMLDocument}; @@ -47,11 +47,6 @@ impl DOMImplementation { } } -impl Reflectable for DOMImplementation { - fn reflector<'a>(&'a self) -> &'a Reflector { - &self.reflector_ - } -} // http://dom.spec.whatwg.org/#domimplementation impl<'a> DOMImplementationMethods for JSRef<'a, DOMImplementation> { |