If a private variable is declared but not used in the program, it can be considered dead code and should therefore be removed. This will improve maintainability because developers will not wonder what the variable is used for.

== Noncompliant Code Example

----
Private Foo as Integer

Function Compute(A As Integer)
   Compute = A * 42
End Function
----

== Compliant Solution

----
Function Compute(A As Integer)
   Compute = A * 42
End Function
----

ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)

include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]
