From 57d0e1d20797ccdcef9e966445b7fefa317f9656 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sat, 15 Oct 2022 00:01:45 +0200 Subject: [PATCH] [SHELL32] Remove unused function --- dll/win32/shell32/shlfolder.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/dll/win32/shell32/shlfolder.cpp b/dll/win32/shell32/shlfolder.cpp index 315ad7d74c1..ee6c78b47fd 100644 --- a/dll/win32/shell32/shlfolder.cpp +++ b/dll/win32/shell32/shlfolder.cpp @@ -26,23 +26,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(shell); -static -HRESULT WINAPI _SHBindToFolder(LPCITEMIDLIST path, IShellFolder** newFolder) -{ - CComPtr desktop; - - HRESULT hr = ::SHGetDesktopFolder(&desktop); - if (FAILED_UNEXPECTEDLY(hr)) - return E_FAIL; - if (path == NULL || path->mkid.cb == 0) - { - *newFolder = desktop; - desktop.p->AddRef(); - return S_OK; - } - return desktop->BindToObject(path, NULL, IID_PPV_ARG(IShellFolder, newFolder)); -} - /*************************************************************************** * GetNextElement (internal function)