Dead Code

In computer programming, dead code is code in the source code of a program which is executed but whose result is never used in any other computation. The execution of dead code wastes computation time as its results are never used.

While the result of a dead computation may never be used, the dead code may raise exceptions or affect some global state, thus removal of such code may change the output of the program and introduce unintended bugs. Compiler optimizations are typically conservative in their approach to dead code removal if there is any ambiguity as to whether removal of the dead code will affect the program output.

Read more about Dead Code:  Example, Analysis

Famous quotes containing the words dead and/or code:

    The bone-frame was made for
    no such shock knit within terror,
    yet the skeleton stood up to it:
    the flesh? it was melted away,
    the heart burnt out, dead ember,
    tendons, muscles shattered, outer husk dismembered....
    Hilda Doolittle (1886–1961)

    Acknowledge your will and speak to us all, “This alone is what I will to be!” Hang your own penal code up above you: we want to be its enforcers!
    Friedrich Nietzsche (1844–1900)