Remove an unused static method

This was added in 44640712f without actually being used.
Merge pull request #789 from mstorsjo/remove-unused-static-func

Remove an unused static method