diff --git a/rtc_base/win32.cc b/rtc_base/win32.cc index 8d8fe27369..b44e513026 100644 --- a/rtc_base/win32.cc +++ b/rtc_base/win32.cc @@ -311,28 +311,4 @@ int inet_pton_v6(const char* src, void* dst) { return 1; } -// Windows UWP applications cannot obtain versioning information from -// the sandbox with intention (as behehaviour based on OS versioning rather -// than feature discovery / compilation flags is discoraged and Windows -// 10 is living continously updated version unlike previous versions -// of Windows). -#if !defined(WINUWP) - -bool GetOsVersion(int* major, int* minor, int* build) { - OSVERSIONINFO info = {0}; - info.dwOSVersionInfoSize = sizeof(info); - if (GetVersionEx(&info)) { - if (major) - *major = info.dwMajorVersion; - if (minor) - *minor = info.dwMinorVersion; - if (build) - *build = info.dwBuildNumber; - return true; - } - return false; -} - -#endif // !defined(WINUWP) - } // namespace rtc