Bug 1317180, part 6 - Removed some unused arguments from TypeSpec ctor. r=billm draft
authorAndrew McCreight <continuation@gmail.com>
Mon, 14 Nov 2016 10:57:43 -0800
changeset 438683 a384dae027844d4326f401b2420d70deb20ffd26
parent 438682 f6305a1f4abc9b68b28ad4d081e24adf7ccff4c8
child 438684 b59718b64863522a6147417e4ff06cef77c177bf
push id35795
push userbmo:continuation@gmail.com
push dateMon, 14 Nov 2016 22:23:52 +0000
reviewersbillm
bugs1317180
milestone53.0a1
Bug 1317180, part 6 - Removed some unused arguments from TypeSpec ctor. r=billm
ipc/ipdl/ipdl/ast.py
--- a/ipc/ipdl/ipdl/ast.py
+++ b/ipc/ipdl/ipdl/ast.py
@@ -401,24 +401,23 @@ State.DYING = State(Loc.NONE, '[dying]',
 
 class Param(Node):
     def __init__(self, loc, typespec, name):
         Node.__init__(self, loc)
         self.name = name
         self.typespec = typespec
 
 class TypeSpec(Node):
-    def __init__(self, loc, spec, array=0, nullable=0,
-                 myChmod=None, otherChmod=None):
+    def __init__(self, loc, spec):
         Node.__init__(self, loc)
         self.spec = spec                # QualifiedId
-        self.array = array              # bool
-        self.nullable = nullable        # bool
-        self.myChmod = myChmod          # None or string
-        self.otherChmod = otherChmod    # None or string
+        self.array = 0                  # bool
+        self.nullable = 0               # bool
+        self.myChmod = None             # None or string
+        self.otherChmod = None          # None or string
 
     def basename(self):
         return self.spec.baseid
 
     def __str__(self):  return str(self.spec)
 
 class QualifiedId:              # FIXME inherit from node?
     def __init__(self, loc, baseid, quals=[ ]):