Merge pull request #2830 from Ms2ger/constructor-unused-variable

Remove the unused 'obj' local from the construct hook; r=Manishearth
This commit is contained in:
Ms2ger 2014-07-15 10:56:47 +02:00
commit 46c906ccd6

View file

@ -3917,7 +3917,6 @@ class CGClassConstructHook(CGAbstractExternMethod):
def definition_body(self):
preamble = CGGeneric("""\
let global = global_object_for_js_object(JS_CALLEE(cx, vp).to_object()).root();
let obj = global.deref().reflector().get_jsobject();
""")
nativeName = MakeNativeName(self._ctor.identifier.name)
callGenerator = CGMethodCall(["&global.root_ref()"], nativeName, True,