Win32 small cleanup

Remove duplicated function