rule: remove useless methods