Remove deprecated function
Merge pull request #420 from WouterSioen/patch-4

Remove deprecated function