remove useless function call