Fix for 5867

removing unecessary function
Merge pull request #5869 from jacksontj/develop

Fix for #5867