Remove dead code from source tree