Unused local variables

Running “Analyze Project” under the “Analyze” menu will produce a listing of declared variables that are not being used. This procedure skips the variables that are defined under Properties for each window, and any global variables. Is there a way to “Analyze Project” and include all of these variables? TJ

Not currently.

You could, however, rename them and then analyze or run and see if anything breaks.

One of the challenges is that you can reference a property through Introspection, not directly, and the compiler would have no way of knowing that. For some apps (not a lot, I’m sure), that would mean false warnings that would have to be ignored or turned off.