summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp')
-rw-r--r--lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp b/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp
index 17aa3369421..df48d153101 100644
--- a/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp
+++ b/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp
@@ -125,8 +125,6 @@ void PlatformWindows::Initialize() {
if (g_initialize_count++ == 0) {
#if defined(_WIN32)
- WSADATA dummy;
- WSAStartup(MAKEWORD(2, 2), &dummy);
// Force a host flag to true for the default platform object.
PlatformSP default_platform_sp(new PlatformWindows(true));
default_platform_sp->SetSystemArchitecture(HostInfo::GetArchitecture());
@@ -139,12 +137,9 @@ void PlatformWindows::Initialize() {
}
}
-void PlatformWindows::Terminate(void) {
+void PlatformWindows::Terminate() {
if (g_initialize_count > 0) {
if (--g_initialize_count == 0) {
-#ifdef _WIN32
- WSACleanup();
-#endif
PluginManager::UnregisterPlugin(PlatformWindows::CreateInstance);
}
}
OpenPOWER on IntegriCloud