Remove unused function.
Merge pull request #5717 from openscholar/5643

Remove unused function