Bug 1317180, part 8 - Remove unused optional argument chmodallowed to _canonicalType. r=billm
authorAndrew McCreight <continuation@gmail.com>
Mon, 14 Nov 2016 11:18:00 -0800
changeset 439660 b7ccea321333c5b935bc04fe2455d2c522b4da9d
parent 439659 0dea817804ac71d9e8720b3dc0d36d47189aaf71
child 439661 4fc83233df681d000842ef2945bc6207d519efd2
push id36064
push userrthijssen@mozilla.com
push dateWed, 16 Nov 2016 13:38:27 +0000
reviewersbillm
bugs1317180
milestone53.0a1
Bug 1317180, part 8 - Remove unused optional argument chmodallowed to _canonicalType. r=billm As of the previous patch, this argument no longer does anything.
ipc/ipdl/ipdl/type.py
--- a/ipc/ipdl/ipdl/type.py
+++ b/ipc/ipdl/ipdl/type.py
@@ -1137,18 +1137,17 @@ class GatherDecls(TcheckVisitor):
             ptdecl = self.symtab.lookup(ptname)
             if ptdecl is None:
                 self.error(
                     ploc,
                     "argument typename `%s' of message `%s' has not been declared",
                     ptname, msgname)
                 ptype = VOID
             else:
-                ptype = self._canonicalType(ptdecl.type, param.typespec,
-                                            chmodallowed=1)
+                ptype = self._canonicalType(ptdecl.type, param.typespec)
             return self.declare(loc=ploc,
                                 type=ptype,
                                 progname=param.name)
 
         for i, inparam in enumerate(md.inParams):
             pdecl = paramToDecl(inparam)
             msgtype.params.append(pdecl.type)
             md.inParams[i] = pdecl
@@ -1212,17 +1211,17 @@ class GatherDecls(TcheckVisitor):
                     sname, sdecl.type.typename())
             else:
                 toState.decl = sdecl
                 toState.start = sdecl.type.start
 
         t.toStates = set(t.toStates)
 
 
-    def _canonicalType(self, itype, typespec, chmodallowed=0):
+    def _canonicalType(self, itype, typespec):
         loc = typespec.loc
         if itype.isIPDL():
             if itype.isProtocol():
                 itype = ActorType(itype,
                                   nullable=typespec.nullable)
 
         if typespec.nullable and not (itype.isIPDL() and itype.isActor()):
             self.error(