Remove old useless codes.