Notable categories of redundant code include: ; Recomputing: Recomputing a value that has previously been calculated and is still available. ;
Dead code: Code that is executed but has no external effect (i.e., does not change the output produced by a program). ;
Unreachable code: Code that is never executed (also called dead code). ;
NOP padding: A NOP instruction might be considered redundant if it is for padding. But if the NOP is required for proper functionality, then it is not redundant. ; Unused
identifier: Something declared, but never referenced, is a redundant declaration. ==Examples==