Bug 1169382 - Don't generate commented out NS_INTERFACE_CLASS or NS_ABSTRACT_CLASS in IPDL. r=billm

This commit is contained in:
Andrew McCreight 2015-06-06 14:37:59 -07:00
parent 54466ce0a4
commit 470cef59ea
2 changed files with 2 additions and 8 deletions

View File

@ -147,7 +147,7 @@ public:
};
template<class ListenerT>
class /*NS_INTERFACE_CLASS*/ IProtocolManager
class IProtocolManager
{
public:
enum ActorDestroyReason {

View File

@ -125,17 +125,11 @@ class CxxCodeGen(CodePrinter, Visitor):
def visitClass(self, c):
if c.specializes is not None:
self.printdentln('template<>')
if c.struct:
self.printdent('struct')
else:
self.printdent('class')
if c.interface:
# FIXME/cjones: turn this "on" when we get the analysis
self.write(' /*NS_INTERFACE_CLASS*/')
if c.abstract:
# FIXME/cjones: turn this "on" when we get the analysis
self.write(' /*NS_ABSTRACT_CLASS*/')
self.write(' '+ c.name)
if c.final:
self.write(' final')