remove dead code
Merge pull request #7942 from andyque/deleteRedundantCode

remove dead code