Unused Local Variable
This inspection highlights local variables, which are not referenced. It’s highlighted as an unused symbol, to let you quickly see that it’s not used.
The message is displayed under these conditions:
- The variable is declared as
localin a function
- It’s the first declaration of that variable in that function
- It’s not exported and there are no references to that variable in the function