python: Get rid of the VectorPort constructor.
authorGabe Black <gabeblack@google.com>
Tue, 16 Apr 2019 06:29:57 +0000 (23:29 -0700)
committerGabe Black <gabeblack@google.com>
Sat, 27 Apr 2019 22:32:50 +0000 (22:32 +0000)
The only thing it was doing beyond calling the parent Port __init__ was
to set isVec, and nobody actually looks at that value later.

Change-Id: I567cb583e6f02a6c18504b9bb20dd13b3c934822
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18175
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>

src/python/m5/params.py

index 8b0a14af34c55fff0d725ee57fb399eaec0eb50c..02f5e51b5c5530fac2dd44667c8d8ed6d224b5cc 100644 (file)
@@ -2115,11 +2115,6 @@ class ResponsePort(Port):
 # VectorPort description object.  Like Port, but represents a vector
 # of connections (e.g., as on a XBar).
 class VectorPort(Port):
-    # VectorPort("role", "description")
-    def __init__(self, role, desc, is_source=False):
-        super(VectorPort, self).__init__(role, desc, is_source)
-        self.isVec = True
-
     def makeRef(self, simobj):
         return VectorPortRef(simobj, self.name, self.role, self.is_source)