diff options
author | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-06-22 20:45:51 +0900 |
---|---|---|
committer | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-06-22 21:22:58 +0900 |
commit | 7fcade294c095e6ed971a9d60a4a31461a3e5337 (patch) | |
tree | bd8adce70a4de0cf183d21f008b64be120c7b474 /src/components/script/dom/bindings/js.rs | |
parent | 8ec20171268bbb173594a8fc9caaac97fb2b6a20 (diff) | |
download | servo-7fcade294c095e6ed971a9d60a4a31461a3e5337.tar.gz servo-7fcade294c095e6ed971a9d60a4a31461a3e5337.zip |
Remove "DerefMut" implementation from Root/JSRef.
Diffstat (limited to 'src/components/script/dom/bindings/js.rs')
-rw-r--r-- | src/components/script/dom/bindings/js.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/components/script/dom/bindings/js.rs b/src/components/script/dom/bindings/js.rs index 2f32e3afed3..4cc5539e666 100644 --- a/src/components/script/dom/bindings/js.rs +++ b/src/components/script/dom/bindings/js.rs @@ -432,12 +432,6 @@ impl<'a, 'b, T: Reflectable> Deref<JSRef<'b, T>> for Root<'a, 'b, T> { } } -impl<'a, 'b, T: Reflectable> DerefMut<JSRef<'b, T>> for Root<'a, 'b, T> { - fn deref_mut<'c>(&'c mut self) -> &'c mut JSRef<'b, T> { - &mut self.jsref - } -} - impl<'a, T: Reflectable> Deref<T> for JSRef<'a, T> { fn deref<'b>(&'b self) -> &'b T { unsafe { @@ -446,14 +440,6 @@ impl<'a, T: Reflectable> Deref<T> for JSRef<'a, T> { } } -impl<'a, T: Reflectable> DerefMut<T> for JSRef<'a, T> { - fn deref_mut<'b>(&'b mut self) -> &'b mut T { - unsafe { - &mut *(self.ptr as *mut T) - } - } -} - /// Encapsulates a reference to something that is guaranteed to be alive. This is freely copyable. pub struct JSRef<'a, T> { ptr: *T, |