Remove unused function
Merge pull request #15977 from cachedout/remove_pub_func

Remove unused function