Fixed bug #4117
Dropped unused function
Merge pull request #759 from roccivic/4117

Fixes bug #4117