Windows: remove unused function