diff --git a/src/plugins/platforms/windows/qwindowsservices.cpp b/src/plugins/platforms/windows/qwindowsservices.cpp index f8d2b8f04e0..fe2d8a36c00 100644 --- a/src/plugins/platforms/windows/qwindowsservices.cpp +++ b/src/plugins/platforms/windows/qwindowsservices.cpp @@ -76,16 +76,6 @@ private: const wchar_t *m_path; }; -static quintptr runShellExecute(const wchar_t *path) -{ - HINSTANCE result = nullptr; - if (SUCCEEDED(CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE))) { - result = ShellExecute(nullptr, nullptr, path, nullptr, nullptr, SW_SHOWNORMAL); - CoUninitialize(); - } - return reinterpret_cast(result); -} - static inline bool shellExecute(const QUrl &url) { const QString nativeFilePath = url.isLocalFile() && !url.hasFragment() && !url.hasQuery()