Remove dead duplicate index function.