Redundant code: Difference between revisions

Content deleted Content added
No edit summary
m Minor code improvements
Line 8:
 
==Example==
<source lang="cC">
int ffoo (int xiX)
{
int yiY =x iX*2;
 
return xiX*2;
}
</source>
 
The second <tt>xiX*2</tt> expression is redundant code and can be replaced by a reference to the variable <tt>yiY</tt>. Alternatively, the definition <tt>int yiY =x iX*2</tt> can instead be removed.
 
==See also==
{{Portal|Computer Science}}
* [[Code bloat]]
 
==References==
{{Reflist}}
 
<!--Categories-->
[[Category:Compiler optimizations]]
[[Category:Software engineering terminology]]
[[Category:Source code]]
 
<!--Interwikis-->
[[it:Codice ridondante]]
[[lt:Perteklinis kodas]]