Bug 700734: remove "interface not derived from nsISupports" warning

This commit is contained in:
Irving Reid 2011-11-08 14:14:53 -05:00
parent edd0a7b852
commit 9dd3c8ba7f

View File

@ -532,11 +532,7 @@ class Interface(object):
self.doccomments = parent.getName(self.name, None).doccomments
parent.setName(self)
if self.base is None:
if self.name != 'nsISupports':
print >>sys.stderr, IDLError("interface '%s' not derived from nsISupports" % self.name,
self.location, warning=True)
else:
if self.base is not None:
realbase = parent.getName(self.base, self.location)
if realbase.kind != 'interface':
raise IDLError("interface '%s' inherits from non-interface type '%s'" % (self.name, self.base), self.location)