Detects when a local variable is declared and/or assigned, but not used.