remove duplicate function
Merge pull request #3250 from dildick/remove-duplicate-function

remove duplicate function