Dead code: Difference between revisions

Content deleted Content added
m See also: Dead code shall not point to dead code, as that is redundant code
Example
Tags: Reverted Mobile edit Mobile web edit
Line 13:
 
return iX*iY;
}
</syntaxhighlight>
 
 
In the above example, although the division of {{mono|iX}} by {{mono|iY}} is computed and never used, it will throw an exception when a division by zero occurs. Therefore, the removal of the dead code may change the output of the programco.
 
== Analysis ==