Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unused Descriptor.needsRooting field.
  • Loading branch information
Ms2ger committed Feb 8, 2017
1 parent 5230ad2 commit 85585d9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions components/script/dom/bindings/codegen/Configuration.py
Expand Up @@ -201,20 +201,17 @@ def __init__(self, config, interface, desc):
# Callback and SpiderMonkey types do not use JS smart pointers, so we should not use the
# built-in rooting mechanisms for them.
if spiderMonkeyInterface:
self.needsRooting = False
self.returnType = 'Rc<%s>' % typeName
self.argumentType = '&%s' % typeName
self.nativeType = typeName
pathDefault = 'dom::types::%s' % typeName
elif self.interface.isCallback():
self.needsRooting = False
ty = 'dom::bindings::codegen::Bindings::%sBinding::%s' % (ifaceName, ifaceName)
pathDefault = ty
self.returnType = "Rc<%s>" % ty
self.argumentType = "???"
self.nativeType = ty
else:
self.needsRooting = True
self.returnType = "Root<%s>" % typeName
self.argumentType = "&%s" % typeName
self.nativeType = "*const %s" % typeName
Expand Down

0 comments on commit 85585d9

Please sign in to comment.