From 4bd2e8996bba6fcbf5cc299648f23b761019347f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 5 Aug 2018 20:07:17 +0100 Subject: [PATCH] merge redundant function params --- src/bsv/peripheral_gen/base.py | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/bsv/peripheral_gen/base.py b/src/bsv/peripheral_gen/base.py index eb9b896..4f4cb78 100644 --- a/src/bsv/peripheral_gen/base.py +++ b/src/bsv/peripheral_gen/base.py @@ -953,7 +953,8 @@ class PeripheralInterfaces(object): class IfaceIter(object): - def __init__(self, name, count, *args): + def __init__(self, ifaces, name, count, *args): + self.ifaces = ifaces self.i = 0 self.name = name self.maxcount = count @@ -981,10 +982,6 @@ class IfaceIter(object): class MkConnection(IfaceIter): - def __init__(self, ifaces, name, count, *args): - self.ifaces = ifaces - IfaceIter.__init__(self, name, count, *args) - def check(self, name, i): return not self.ifaces.is_on_fastbus(name, i) @@ -997,10 +994,6 @@ class MkConnection(IfaceIter): class MkExtIface(IfaceIter): - def __init__(self, ifaces, name, count, *args): - self.ifaces = ifaces - IfaceIter.__init__(self, name, count, *args) - def check(self, name, i): return not self.ifaces.is_on_fastbus(name, i) @@ -1010,10 +1003,6 @@ class MkExtIface(IfaceIter): class MkPinCon(IfaceIter): - def __init__(self, ifaces, name, count, *args): - self.ifaces = ifaces - IfaceIter.__init__(self, name, count, *args) - def check(self, name, i): return not self.ifaces.is_on_fastbus(name, i) @@ -1023,10 +1012,6 @@ class MkPinCon(IfaceIter): class MkClkCon(IfaceIter): - def __init__(self, ifaces, name, count, *args): - self.ifaces = ifaces - IfaceIter.__init__(self, name, count, *args) - def check(self, name, i): return not self.ifaces.is_on_fastbus(name, i) -- 2.30.2