Remove dead code found by static analysis.