Delete unused function.
Merge pull request #1705 from erictune/dead

Delete unused function.