From 82e286c0603220fb1849cdc4e4d7a5ee0e722248 Mon Sep 17 00:00:00 2001 From: Irving Reid Date: Tue, 8 Nov 2011 14:14:53 -0500 Subject: [PATCH] Bug 700734: remove "interface not derived from nsISupports" warning --- xpcom/idl-parser/xpidl.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xpcom/idl-parser/xpidl.py b/xpcom/idl-parser/xpidl.py index 98f9de457442..92cadd1a19b4 100644 --- a/xpcom/idl-parser/xpidl.py +++ b/xpcom/idl-parser/xpidl.py @@ -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)