cleanup unused function in webglRenderer
Merge pull request #5005 from gero3/patch-23

cleanup unused function in webglRenderer