Remove an unused function

This function contains a lot of platform specific constants
whose use is unknown.
Merge pull request #177 from mstorsjo/remove-unused-function

Remove an unused function