quality metric: remove useless code