deleting dead code
This commit is contained in:
parent
91d7b72ef1
commit
651d6e352b
1 changed files with 0 additions and 11 deletions
|
|
@ -132,20 +132,9 @@ class STLVisitor(NodeVisitor):
|
||||||
def visit_id(self, name, _):
|
def visit_id(self, name, _):
|
||||||
return Symbol(name.text)
|
return Symbol(name.text)
|
||||||
|
|
||||||
|
|
||||||
def visit_time_index(self, _, children):
|
|
||||||
children = list(flatten(children))
|
|
||||||
return children[0] if children else ast.t_sym
|
|
||||||
|
|
||||||
def visit_prime(self, *_):
|
|
||||||
return ast.t_sym + ast.dt_sym
|
|
||||||
|
|
||||||
def visit_const(self, const, children):
|
def visit_const(self, const, children):
|
||||||
return float(const.text)
|
return float(const.text)
|
||||||
|
|
||||||
def visit_dt(self, *_):
|
|
||||||
return ast.dt_sym
|
|
||||||
|
|
||||||
def visit_term(self, _, children):
|
def visit_term(self, _, children):
|
||||||
coeffs, (iden, time) = children
|
coeffs, (iden, time) = children
|
||||||
c = coeffs[0] if coeffs else Number(1)
|
c = coeffs[0] if coeffs else Number(1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue