Module: wine Branch: master Commit: dc3189a7103091b4a14de2a4c6ae12440ea1d0cd URL: https://gitlab.winehq.org/wine/wine/-/commit/dc3189a7103091b4a14de2a4c6ae124...
Author: Alex Henrie alexhenrie24@gmail.com Date: Sun Nov 20 19:37:23 2022 -0700
urlmon: Remove unused function heap_strdupWtoA.
This function was introduced in commit 59055c4d45c674c2a9dc2efcb8d0a973f870f3ac but never used.
---
dlls/urlmon/urlmon_main.h | 14 -------------- 1 file changed, 14 deletions(-)
diff --git a/dlls/urlmon/urlmon_main.h b/dlls/urlmon/urlmon_main.h index 691c63e3b42..6687fbd0516 100644 --- a/dlls/urlmon/urlmon_main.h +++ b/dlls/urlmon/urlmon_main.h @@ -281,18 +281,4 @@ static inline LPWSTR heap_strdupAtoW(const char *str) return ret; }
-static inline char *heap_strdupWtoA(const WCHAR *str) -{ - char *ret = NULL; - - if(str) { - size_t size = WideCharToMultiByte(CP_ACP, 0, str, -1, NULL, 0, NULL, NULL); - ret = heap_alloc(size); - if(ret) - WideCharToMultiByte(CP_ACP, 0, str, -1, ret, size, NULL, NULL); - } - - return ret; -} - #endif /* __WINE_URLMON_MAIN_H */