remove useless code, file removal is handled elsewhere