Skip to content

Commit edf03df

Browse files
authored
ast: Remove unused utility functions (#76)
1 parent 63d509a commit edf03df

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/ast.jl

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ to indicate that the "primary" location of the source is the location where
340340
"x" ::K"Identifier"
341341
]
342342
[K"call"
343-
"eval" ::K"core"
343+
"eval" ::K"core"
344344
mn =>K"Identifier"
345345
"x" ::K"Identifier"
346346
]
@@ -567,21 +567,11 @@ function is_sym_decl(x)
567567
k == K"Identifier" || k == K"::"
568568
end
569569

570-
function is_identifier(x)
571-
k = kind(x)
572-
k == K"Identifier" || k == K"var" || is_operator(k) || is_macro_name(k)
573-
end
574-
575570
function is_eventually_call(ex::SyntaxTree)
576571
k = kind(ex)
577572
return k == K"call" || ((k == K"where" || k == K"::") && is_eventually_call(ex[1]))
578573
end
579574

580-
function is_function_def(ex)
581-
k = kind(ex)
582-
return k == K"function" || k == K"->"
583-
end
584-
585575
function find_parameters_ind(exs)
586576
i = length(exs)
587577
while i >= 1

0 commit comments

Comments
 (0)