[rest+service] measures : remove useless code