From 4b65f4731572d6abae70bb3398ced69beedfe2f7 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sat, 7 Jun 2014 17:22:54 +0200 Subject: Remove support for external interfaces. --- .../script/dom/bindings/codegen/parser/WebIDL.py | 40 ++-------------------- 1 file changed, 2 insertions(+), 38 deletions(-) (limited to 'src/components/script/dom/bindings/codegen') diff --git a/src/components/script/dom/bindings/codegen/parser/WebIDL.py b/src/components/script/dom/bindings/codegen/parser/WebIDL.py index 1903fc2ba4f..7fcea9719ad 100644 --- a/src/components/script/dom/bindings/codegen/parser/WebIDL.py +++ b/src/components/script/dom/bindings/codegen/parser/WebIDL.py @@ -443,44 +443,8 @@ class IDLIdentifierPlaceholder(IDLObjectWithIdentifier): class IDLExternalInterface(IDLObjectWithIdentifier): def __init__(self, location, parentScope, identifier): - assert isinstance(identifier, IDLUnresolvedIdentifier) - assert isinstance(parentScope, IDLScope) - self.parent = None - IDLObjectWithIdentifier.__init__(self, location, parentScope, identifier) - IDLObjectWithIdentifier.resolve(self, parentScope) - - def finish(self, scope): - pass - - def validate(self): - pass - - def isExternal(self): - return True - - def isInterface(self): - return True - - def isConsequential(self): - return False - - def addExtendedAttributes(self, attrs): - assert len(attrs) == 0 - - def resolve(self, parentScope): - pass - - def getJSImplementation(self): - return None - - def isJSImplemented(self): - return False - - def getNavigatorProperty(self): - return None - - def _getDependentObjects(self): - return set() + raise WebIDLError("Servo does not support external interfaces.", + [self.location]) class IDLInterface(IDLObjectWithScope): def __init__(self, location, parentScope, name, parent, members, -- cgit v1.2.3