Fixed bug #4117
Dropped unused function