aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/utils.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2015-10-23 17:21:04 +0200
committerMs2ger <Ms2ger@gmail.com>2015-10-23 17:21:04 +0200
commit970b8aa8bccffac83acc445313f7100817f4635c (patch)
tree86883cb55c612289399321f5a748da23d212911e /components/script/dom/bindings/utils.rs
parent9be52dc41a06f4469e23a6080f25730ee7494ca6 (diff)
downloadservo-970b8aa8bccffac83acc445313f7100817f4635c.tar.gz
servo-970b8aa8bccffac83acc445313f7100817f4635c.zip
Remove the unused default implementation of Reflectable::init_reflector.
Diffstat (limited to 'components/script/dom/bindings/utils.rs')
-rw-r--r--components/script/dom/bindings/utils.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs
index 4b4e6cfea93..5dc7f2d6215 100644
--- a/components/script/dom/bindings/utils.rs
+++ b/components/script/dom/bindings/utils.rs
@@ -418,9 +418,7 @@ pub trait Reflectable {
/// Returns the receiver's reflector.
fn reflector(&self) -> &Reflector;
/// Initializes the Reflector
- fn init_reflector(&mut self, _obj: *mut JSObject) {
- panic!("Cannot call init on this Reflectable");
- }
+ fn init_reflector(&mut self, obj: *mut JSObject);
}
/// Create the reflector for a new DOM object and yield ownership to the