remove the dead code for bug #180