Remove dead code and prevent notices.