Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 523 Bytes

unused-variables.md

File metadata and controls

15 lines (10 loc) · 523 Bytes

Presence of Unused Variables

Although it is allowed, it is best practice to avoid unused variables. Unused variables can lead to a few different problems:

  • Increase in computations (unnecessary gas consumption)
  • Indication of bugs or malformed data structures
  • Decreased code readability

It is highly recommended to remove all unused variables from a code base.

Sources