The Unused Code Ruleset contains a collection of rules that find unused code. Unused Private Field detects when a private field is declared that is not used by the class. 3 Unused Local Variables detects when a variable is declared, but not used (except for possibly initial assignment) 3 Unused Private Method detects when a private method is declared but is unused. 3 Avoid passing parameters to methods and then not using those parameters. 3