mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 700734: remove "interface not derived from nsISupports" warning
This commit is contained in:
parent
a539a4b217
commit
82e286c060
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user