aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/js.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2015-10-21 12:17:50 +0200
committerMs2ger <Ms2ger@gmail.com>2015-10-21 12:17:50 +0200
commit4e8033b7390124fba597a6bc2f25d929949c67fe (patch)
treec108683c4c3f2a5ea2f8a1109a1cc26669461548 /components/script/dom/bindings/js.rs
parent7fb3c51bbbbc708b1472cb79751349adff8b9501 (diff)
downloadservo-4e8033b7390124fba597a6bc2f25d929949c67fe.tar.gz
servo-4e8033b7390124fba597a6bc2f25d929949c67fe.zip
Remove unused JS::assign.
Diffstat (limited to 'components/script/dom/bindings/js.rs')
-rw-r--r--components/script/dom/bindings/js.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs
index 1ef1d93a86d..cc900873f36 100644
--- a/components/script/dom/bindings/js.rs
+++ b/components/script/dom/bindings/js.rs
@@ -87,13 +87,6 @@ impl<T: Reflectable> JS<T> {
ptr: unsafe { NonZero::new(&*obj) }
}
}
- /// Store an rooted value in this field. This is safe under the
- /// assumption that JS<T> values are only used as fields in DOM types that
- /// are reachable in the GC graph, so this unrooted value becomes
- /// transitively rooted for the lifetime of its new owner.
- pub fn assign(&mut self, val: Root<T>) {
- self.ptr = val.ptr.clone();
- }
}
impl<T: Reflectable> Deref for JS<T> {