Remove loop that is never executed