remove unnecessary function

time-shift
Houtan Bastani 2019-02-01 12:04:46 +01:00
parent f4b8735431
commit ff2ca5fc17
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 5 additions and 9 deletions

View File

@ -324,19 +324,15 @@ else
end
end
function tf = isOlsParam(node)
if strcmp(node.node_type, 'VariableNode') && strcmp(node.type, 'parameter')
tf = true;
else
tf = false;
end
end
function tf = isOlsParamExpr(node, line)
if strcmp(node.node_type, 'NumConstNode')
tf = true;
elseif strcmp(node.node_type, 'VariableNode')
tf = isOlsParam(node);
if strcmp(node.type, 'parameter')
tf = true;
else
tf = false;
end
elseif strcmp(node.node_type, 'UnaryOpNode')
tf = false;
elseif strcmp(node.node_type, 'BinaryOpNode')