update unused code