Delete useless codes.