Remove declarations of removed API as well.
not used anywhere as far as I can see; should fix build on windows