From f2c679cfec46a26297056abb845bfdd3f36930e8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 8 Mar 2021 14:02:05 +0100 Subject: [PATCH] win32/Com: remove the unused COINIT_MULTITHREADED constructor --- src/win32/Com.hxx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/win32/Com.hxx b/src/win32/Com.hxx index 34350b62d..284fca5ea 100644 --- a/src/win32/Com.hxx +++ b/src/win32/Com.hxx @@ -28,14 +28,6 @@ // https://docs.microsoft.com/en-us/windows/win32/api/_com/ class COM { public: - COM() { - if (HRESULT result = CoInitializeEx(nullptr, COINIT_MULTITHREADED); - FAILED(result)) { - throw MakeHResultError( - result, - "Unable to initialize COM with COINIT_MULTITHREADED"); - } - } COM(bool) { if (HRESULT result = CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); FAILED(result)) {