delete unnecessary code in shell.java