Finding “dead code” in a large C++ legacy application [closed]

You’ll want to use a static analysis tool

The main gotcha I’ve run into is that you have to be careful that any libraries aren’t used from somewhere that you don’t control/have. If you delete a function from a class that gets used by referencing a library in your project you can break something that you didn’t know used the code.

Leave a Comment