Remove unused function.
Merge pull request #1546 from arkon94/master

Remove unused function