remove deprecated code.