Delete useless codes