compiler.types: fix obsolete iodelay references.

This commit is contained in:
whitequark 2015-11-07 15:14:19 +03:00
parent d6d0a3e3e9
commit a0c6f75f9b

View File

@ -262,9 +262,9 @@ class TRPCFunction(TFunction):
attributes = OrderedDict()
def __init__(self, args, optargs, ret, service):
super().__init__(args, optargs, ret,
delay=FixedDelay(iodelay.Constant(0)))
super().__init__(args, optargs, ret)
self.service = service
self.delay = TFixedDelay(iodelay.Const(0))
def unify(self, other):
if isinstance(other, TRPCFunction) and \
@ -285,9 +285,9 @@ class TCFunction(TFunction):
attributes = OrderedDict()
def __init__(self, args, ret, name):
super().__init__(args, OrderedDict(), ret,
delay=FixedDelay(iodelay.Constant(0)))
self.name = name
super().__init__(args, OrderedDict(), ret)
self.name = name
self.delay = TFixedDelay(iodelay.Const(0))
def unify(self, other):
if isinstance(other, TCFunction) and \