remove useless callback code.