Update WindowsDesktopNetworkInformationImpl.cpp
Addressing code review comments
@@ -55,24 +55,6 @@ namespace PAL_NS_BEGIN {
virtual NetworkType GetNetworkType() override
{
m_type = NetworkType_Unknown;
-#ifdef HAVE_NETWORK_TYPE
- // Unfortunately this network type detection logic uses WinInet API
- // that may not always behave properly on some versions of Windows.
- // Turning this code off should improve overall SDK stability.
- DWORD flags;
- DWORD reserved = 0;
- if (::InternetGetConnectedState(&flags, reserved)) {
- switch (flags) {
- case INTERNET_CONNECTION_MODEM:
- case INTERNET_CONNECTION_LAN:
- m_type = NetworkType_Wired;
- break;
- default:
- m_type = NetworkType_Unknown;
- break;
- }
- }
-#endif
return m_type;
}
