Delete useless code of shell.