Variable declared but not used

objectscriptQuality release 
1.0.0
Id 
OS0013
Rule type 
Code Smell
Severity 

Major

Major
SQALE characteristic 
  • Efficiency
    • Efficiency compliance
Tags 
maintainability, performance
Remediation function 
Constant/issue
Remediation cost 
15min

This inspection reports all variables declared in the context of a method or classmethod, which is not used afterwards anywhere in this method.

Such variables take unnecessary memory and processing power; they should be removed for efficiency reasons.