remove some dead code.