Hacker News new | ask | show | jobs
by UncleMeat 1154 days ago
That isn't dead code.

Dead code is shit that has a build rule and no other build rules in the entire repo depend on it. Or private functions that have no callers in an application that isn't built with any kind of reflection capabilities.

2 comments

Or code that is behind if(false), System.exit or null pointer dereference. Finding those kinds of things is one of the best part of modern compilers, it's nice that they've extended that to the whole ecosystem.
Dead code or abandoned project with goals that got forgotten but might still be important?