[PATCH] user32: Remove unused heap_strdupW helper.

Rémi Bernon rbernon at codeweavers.com
Mon Apr 19 03:22:40 CDT 2021


Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
 dlls/user32/user_private.h | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/dlls/user32/user_private.h b/dlls/user32/user_private.h
index dfd52421e66..5f8059a12a0 100644
--- a/dlls/user32/user_private.h
+++ b/dlls/user32/user_private.h
@@ -381,14 +381,4 @@ struct png_funcs
 #define assert(expr) ((void)0)
 #endif
 
-static inline WCHAR *heap_strdupW(const WCHAR *src)
-{
-    WCHAR *dst;
-    unsigned len;
-    if (!src) return NULL;
-    len = (lstrlenW(src) + 1) * sizeof(WCHAR);
-    if ((dst = heap_alloc(len))) memcpy(dst, src, len);
-    return dst;
-}
-
 #endif /* __WINE_USER_PRIVATE_H */
-- 
2.31.0




More information about the wine-devel mailing list