Bug 1317180, part 8 - Remove unused optional argument chmodallowed to _canonicalType. r=billm
As of the previous patch, this argument no longer does anything.
--- 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(