diff options
author | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2015-01-25 02:13:00 +0900 |
---|---|---|
committer | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2015-02-01 01:54:37 +0900 |
commit | 8889041c1957232fe1acabb255c131686c4a924a (patch) | |
tree | 372d7bdf1863db62a19f8c67a17ece073f466709 /components/script/dom/bindings/js.rs | |
parent | 80a4911f9c44aa544beb5d5ee6e45cbe7b166228 (diff) | |
download | servo-8889041c1957232fe1acabb255c131686c4a924a.tar.gz servo-8889041c1957232fe1acabb255c131686c4a924a.zip |
Use BarCast::to_layout_js() instead of LayoutJS.to_script().
Diffstat (limited to 'components/script/dom/bindings/js.rs')
-rw-r--r-- | components/script/dom/bindings/js.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs index f2d00c6d76f..2e229a28df3 100644 --- a/components/script/dom/bindings/js.rs +++ b/components/script/dom/bindings/js.rs @@ -144,14 +144,6 @@ pub struct LayoutJS<T> { ptr: NonZero<*const T> } -impl<T> LayoutJS<T> { - pub fn to_script(self) -> JS<T> { - JS { - ptr: self.ptr - } - } -} - impl<T> Copy for JS<T> {} impl<T> Copy for LayoutJS<T> {} |