[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: how to find unused local variables?
- From: nr@... (Norman Ramsey)
- Date: Sun, 18 May 2008 14:40:42 -0400 (EDT)
I have just finished a major refactoring of about 1000 lines of Lua
code which I have now split into 4 or 5 different modules.
In the process, I suspect I have defined some local variables that are not
used. I seem to remember that once upon a time LHF posted a script
that could be run over the output of luac to find unused local variables,
but I am not having any luck finding something in the archives.
Does anyone have suggestions for how to identify unused local variables?
(Remember that to be unused, a local variable must not be used as an
upvalue, either.)
Norman