index: remove dead code