remove dead code
Merge pull request #1230 from WalterBright/rmdeadcode

remove dead code