Fixed a couple of outdated comments by checkUnusedVar
This commit is contained in:
parent
ce03f2ca27
commit
77b75e3134
|
@ -269,10 +269,7 @@ checkProcCallArgsUsage = mapM_ checkArgs . listify isProcCall
|
||||||
checkPlainVarUsage (m, mockedupParItems)
|
checkPlainVarUsage (m, mockedupParItems)
|
||||||
checkArrayUsage (m, fmap ((,) []) mockedupParItems)
|
checkArrayUsage (m, fmap ((,) []) mockedupParItems)
|
||||||
|
|
||||||
-- TODO we could do this much faster if we processed the AST bottom-up, and also
|
-- This isn't actually just unused variables, it's all unused names (except PROCs)
|
||||||
-- accumulated the output of the listify on the variables as we went.
|
|
||||||
|
|
||||||
-- This isn't actually just unused variables, it's all unused names
|
|
||||||
checkUnusedVar :: CheckOptM ()
|
checkUnusedVar :: CheckOptM ()
|
||||||
checkUnusedVar = forAnyASTStructBottomUpAccum doSpec
|
checkUnusedVar = forAnyASTStructBottomUpAccum doSpec
|
||||||
where
|
where
|
||||||
|
|
Loading…
Reference in New Issue
Block a user