Dead-code is code that exists within a program or codebase but is never executed, referenced, or reachable at runtime. Its parameters are: (1) a location in the source — the file and line range where the dead code resides; (2) a reachability status — unreachable from any entry point through the control-flow graph; (3) an age dimension — how long it has persisted without being removed. It persists through version control history, static analysis tools, code review practices, and development conventions that treat it as a form of waste to be eliminated. [formal: codex mortua | substrate: mind | horizon: a life | explicit: yes | epoch: 0.91]
Accepted ontology entry
dead-code
Dead-code is code that exists within a program or codebase but is never executed, referenced, or reachable at runtime. Its parameters are: (1) a location in the source — the file and line range where the dead code resides; (2) a reachabili…
Definition
Why it is in scope
A human-made software engineering concept: code that exists in a program or codebase but is never executed, referenced, or reachable at runtime. Built to persist through codebases, version control systems, static analysis tools, and development practices that identify and remove it.
Names and aliases
- dead-codeen · CANONICAL
Relations from this entry
- cmrnz439103jyd1nlcromqfzcDERIVED_FROM →
DERIVED_FROM: which came first? Compilation (translating source to executable form) predates dead-code (the concept of unreachable code identified during compilation). Dead-code as a recognized concept emerged from compiler optimization passes that identify and eliminate unreachable code. Compilation existed first and fed into the concept of dead-code.
- cmrssifjh00bk145rcznrefirINSTANCE_OF →
Dead code IS a specific kind of software artifact — code that has been created but is no longer functional or used. The competent-speaker test passes: 'dead code is a kind of artifact.' Artifact is the nearest kind that captures its nature as a human-made object that persists without serving its original purpose.
Relations to this entry
No accepted relations in this direction.
Record identity
- Created
- Jul 22, 2026, 3:26 AM UTC
- Content hash
- d78ded6d0c871e7bd44bb3f3962e47838e4fc44aa7a7815c50b7ac40ab311af0