From ea3c2c243cf869b1c5d0f7f2ef67c52ba6ba176a Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Mon, 18 Aug 2014 22:45:58 +0200 Subject: Replace hasInterfacePrototypeObject checks by isCallback checks in codegen. Checking for callbacks directly makes it a lot clearer what's going on, and we don't intend to take hasConcreteDescendant into consideration. See also . --- src/components/script/dom/bindings/codegen/Configuration.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/components/script/dom/bindings/codegen/Configuration.py') diff --git a/src/components/script/dom/bindings/codegen/Configuration.py b/src/components/script/dom/bindings/codegen/Configuration.py index b9e521ed175..ea193d18d7a 100644 --- a/src/components/script/dom/bindings/codegen/Configuration.py +++ b/src/components/script/dom/bindings/codegen/Configuration.py @@ -72,10 +72,6 @@ class Configuration: getter = lambda x: x.interface.filename() elif key == 'hasInterfaceObject': getter = lambda x: x.interface.hasInterfaceObject() - elif key == 'hasInterfacePrototypeObject': - getter = lambda x: x.interface.hasInterfacePrototypeObject() - elif key == 'hasInterfaceOrInterfacePrototypeObject': - getter = lambda x: x.hasInterfaceOrInterfacePrototypeObject() elif key == 'isCallback': getter = lambda x: x.interface.isCallback() elif key == 'isJSImplemented': @@ -258,9 +254,6 @@ class Descriptor(DescriptorProvider): config.maxProtoChainLength = max(config.maxProtoChainLength, len(self.prototypeChain)) - def hasInterfaceOrInterfacePrototypeObject(self): - return self.interface.hasInterfaceObject() or self.interface.hasInterfacePrototypeObject() - def getExtendedAttributes(self, member, getter=False, setter=False): def maybeAppendInfallibleToAttrs(attrs, throws): if throws is None: -- cgit v1.2.3