Redundant code

From Wikipedia, the free encyclopedia

Redundant code is a computer programming term for code that is executed but has no effect on the output of a program (dead code is the term applied to code that is never executed).

Some developers also apply this term to what is essentially duplicate code. The argument being that the second and subsequent copies of functionally the same code are redundant because they could all be encapulated in (for instance) a function definition.


In other languages