Mikołaj Zalewski : shell32: Remove the now unused SHELL_DeleteFileA and SHELL_DeleteDirectoryA.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jun 2 14:11:52 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 276bbb9f97a393435b0ccd20a7b86f1c9b63661c
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=276bbb9f97a393435b0ccd20a7b86f1c9b63661c
Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date: Fri Jun 2 17:10:17 2006 +0200
shell32: Remove the now unused SHELL_DeleteFileA and SHELL_DeleteDirectoryA.
---
dlls/shell32/shlfileop.c | 23 +----------------------
1 files changed, 1 insertions(+), 22 deletions(-)
diff --git a/dlls/shell32/shlfileop.c b/dlls/shell32/shlfileop.c
index 64e66e3..426c022 100644
--- a/dlls/shell32/shlfileop.c
+++ b/dlls/shell32/shlfileop.c
@@ -156,19 +156,6 @@ static void SHELL32_FreeUnicodeBuf(LPWST
* Asks for confirmation when bShowUI is true and deletes the directory and
* all its subdirectories and files if necessary.
*/
-BOOL SHELL_DeleteDirectoryA(LPCSTR pszDir, BOOL bShowUI)
-{
- LPWSTR wPath;
- BOOL ret = FALSE;
-
- if (!SHELL32_AnsiToUnicodeBuf(pszDir, &wPath, 0))
- {
- ret = SHELL_DeleteDirectoryW(wPath, bShowUI);
- SHELL32_FreeUnicodeBuf(wPath);
- }
- return ret;
-}
-
BOOL SHELL_DeleteDirectoryW(LPCWSTR pszDir, BOOL bShowUI)
{
BOOL ret = TRUE;
@@ -205,16 +192,8 @@ BOOL SHELL_DeleteDirectoryW(LPCWSTR pszD
}
/**************************************************************************
- * SHELL_DeleteFileA() [internal]
+ * SHELL_DeleteFileW() [internal]
*/
-BOOL SHELL_DeleteFileA(LPCSTR pszFile, BOOL bShowUI)
-{
- if (bShowUI && !SHELL_ConfirmDialog(ASK_DELETE_FILE, pszFile))
- return FALSE;
-
- return (SHNotifyDeleteFileA(pszFile) == ERROR_SUCCESS);
-}
-
BOOL SHELL_DeleteFileW(LPCWSTR pszFile, BOOL bShowUI)
{
if (bShowUI && !SHELL_ConfirmDialogW(ASK_DELETE_FILE, pszFile))
More information about the wine-cvs
mailing list