Remove an unused function

This function contains a lot of platform specific constants
whose use is unknown.