Fixed a couple of outdated comments by checkUnusedVar

This commit is contained in:
Neil Brown 2008-11-25 17:43:16 +00:00
parent ce03f2ca27
commit 77b75e3134

View File

@ -269,10 +269,7 @@ checkProcCallArgsUsage = mapM_ checkArgs . listify isProcCall
checkPlainVarUsage (m, mockedupParItems)
checkArrayUsage (m, fmap ((,) []) mockedupParItems)
-- TODO we could do this much faster if we processed the AST bottom-up, and also
-- accumulated the output of the listify on the variables as we went.
-- This isn't actually just unused variables, it's all unused names
-- This isn't actually just unused variables, it's all unused names (except PROCs)
checkUnusedVar :: CheckOptM ()
checkUnusedVar = forAnyASTStructBottomUpAccum doSpec
where