From 0ecc22be616144c90ee4313e15e7bcff1dcb843a Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Sat, 7 Feb 2009 16:09:28 +0100 Subject: [PATCH] shell32: HCR_GetDefaultIconFromGUIDW() is unused so remove it. --- dlls/shell32/classes.c | 14 -------------- dlls/shell32/shell32_main.h | 1 - 2 files changed, 15 deletions(-) diff --git a/dlls/shell32/classes.c b/dlls/shell32/classes.c index 73c88221454..f4aa87068c6 100644 --- a/dlls/shell32/classes.c +++ b/dlls/shell32/classes.c @@ -313,20 +313,6 @@ BOOL HCR_GetDefaultIconA(LPCSTR szClass, LPSTR szDest, DWORD len, int* picon_idx return ret; } -BOOL HCR_GetDefaultIconFromGUIDW(REFIID riid, LPWSTR szDest, DWORD len, int* picon_idx) -{ - HKEY hkey; - BOOL ret = FALSE; - - if (HCR_RegOpenClassIDKey(riid, &hkey)) - { - ret = HCR_RegGetDefaultIconW(hkey, szDest, len, picon_idx); - RegCloseKey(hkey); - } - TRACE("-- %s %i\n", debugstr_w(szDest), *picon_idx); - return ret; -} - /*************************************************************************************** * HCR_GetClassName [internal] * diff --git a/dlls/shell32/shell32_main.h b/dlls/shell32/shell32_main.h index a5089164ce8..88ffb0c13e6 100644 --- a/dlls/shell32/shell32_main.h +++ b/dlls/shell32/shell32_main.h @@ -60,7 +60,6 @@ BOOL HCR_MapTypeToValueW(LPCWSTR szExtension, LPWSTR szFileType, LONG len, BOOL BOOL HCR_GetDefaultVerbW( HKEY hkeyClass, LPCWSTR szVerb, LPWSTR szDest, DWORD len ); BOOL HCR_GetExecuteCommandW( HKEY hkeyClass, LPCWSTR szClass, LPCWSTR szVerb, LPWSTR szDest, DWORD len ); BOOL HCR_GetDefaultIconW(LPCWSTR szClass, LPWSTR szDest, DWORD len, int* picon_idx); -BOOL HCR_GetDefaultIconFromGUIDW(REFIID riid, LPWSTR szDest, DWORD len, int* picon_idx); BOOL HCR_GetClassNameW(REFIID riid, LPWSTR szDest, DWORD len); /* ANSI versions of above functions, supposed to go away as soon as they are not used anymore */