From 7051bf5e224486335608cc621a9cab5a216354a2 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Mon, 3 Nov 2008 22:17:04 -0600 Subject: [PATCH] msi: Remove an unused registry function. --- dlls/msi/msipriv.h | 2 -- dlls/msi/registry.c | 21 --------------------- 2 files changed, 23 deletions(-) diff --git a/dlls/msi/msipriv.h b/dlls/msi/msipriv.h index d83fae5a947..f856e669f78 100644 --- a/dlls/msi/msipriv.h +++ b/dlls/msi/msipriv.h @@ -775,13 +775,11 @@ UINT MSIREG_OpenUserDataFeaturesKey(LPCWSTR szProduct, MSIINSTALLCONTEXT context extern UINT MSIREG_OpenUserComponentsKey(LPCWSTR szComponent, HKEY* key, BOOL create); extern UINT MSIREG_OpenLocalUserDataComponentKey(LPCWSTR szComponent, HKEY *key, BOOL create); extern UINT MSIREG_OpenUserDataComponentKey(LPCWSTR szComponent, HKEY *key, BOOL create); -extern UINT MSIREG_OpenProductsKey(LPCWSTR szProduct, HKEY* key, BOOL create); extern UINT MSIREG_OpenPatchesKey(LPCWSTR szPatch, HKEY* key, BOOL create); extern UINT MSIREG_OpenUserDataProductKey(LPCWSTR szProduct, HKEY* key, BOOL create); extern UINT MSIREG_OpenLocalUserDataProductKey(LPCWSTR szProduct, HKEY* key, BOOL create); extern UINT MSIREG_OpenCurrentUserInstallProps(LPCWSTR szProduct, HKEY* key, BOOL create); extern UINT MSIREG_OpenLocalSystemInstallProps(LPCWSTR szProduct, HKEY* key, BOOL create); -extern UINT MSIREG_OpenUserComponentsKey(LPCWSTR szComponent, HKEY* key, BOOL create); extern UINT MSIREG_OpenUpgradeCodesKey(LPCWSTR szProduct, HKEY* key, BOOL create); extern UINT MSIREG_OpenUserUpgradeCodesKey(LPCWSTR szProduct, HKEY* key, BOOL create); extern UINT MSIREG_DeleteProductKey(LPCWSTR szProduct); diff --git a/dlls/msi/registry.c b/dlls/msi/registry.c index 3ed08f73c1a..26b872daac8 100644 --- a/dlls/msi/registry.c +++ b/dlls/msi/registry.c @@ -950,27 +950,6 @@ UINT MSIREG_DeleteUserDataProductKey(LPCWSTR szProduct) return RegDeleteTreeW(HKEY_LOCAL_MACHINE, keypath); } -UINT MSIREG_OpenProductsKey(LPCWSTR szProduct, HKEY* key, BOOL create) -{ - UINT rc; - WCHAR squished_pc[GUID_SIZE]; - WCHAR keypath[0x200]; - - TRACE("%s\n",debugstr_w(szProduct)); - if (!squash_guid(szProduct,squished_pc)) - return ERROR_FUNCTION_FAILED; - TRACE("squished (%s)\n", debugstr_w(squished_pc)); - - sprintfW(keypath,szInstaller_Products_fmt,squished_pc); - - if (create) - rc = RegCreateKeyW(HKEY_LOCAL_MACHINE,keypath,key); - else - rc = RegOpenKeyW(HKEY_LOCAL_MACHINE,keypath,key); - - return rc; -} - UINT MSIREG_DeleteProductKey(LPCWSTR szProduct) { WCHAR squished_pc[GUID_SIZE]; -- 2.11.4.GIT