Remove an unused static function

This avoids a warning with clang.

This function was added in 4bd6a3a6e8 even though nothing in
that commit actually uses it.
Merge pull request #843 from mstorsjo/remove-unused-function

Remove an unused static function