[PATCH 6/6] uxtheme: Remove unused code.

Zhiyi Zhang zzhang at codeweavers.com
Mon Feb 22 08:33:08 CST 2021


Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
---
 dlls/uxtheme/buffer.c   | 2 --
 dlls/uxtheme/msstyles.c | 2 --
 2 files changed, 4 deletions(-)

diff --git a/dlls/uxtheme/buffer.c b/dlls/uxtheme/buffer.c
index b07284f8e06..f159d5c1be0 100644
--- a/dlls/uxtheme/buffer.c
+++ b/dlls/uxtheme/buffer.c
@@ -52,8 +52,6 @@ static void free_paintbuffer(struct paintbuffer *buffer)
 
 static struct paintbuffer *get_buffer_obj(HPAINTBUFFER handle)
 {
-    if (!handle)
-        return NULL;
     return handle;
 }
 
diff --git a/dlls/uxtheme/msstyles.c b/dlls/uxtheme/msstyles.c
index cd7677e5783..ed22d923250 100644
--- a/dlls/uxtheme/msstyles.c
+++ b/dlls/uxtheme/msstyles.c
@@ -46,8 +46,6 @@ static BOOL MSSTYLES_GetNextToken(LPCWSTR lpStringStart, LPCWSTR lpStringEnd, LP
 static void MSSTYLES_ParseThemeIni(PTHEME_FILE tf, BOOL setMetrics);
 static HRESULT MSSTYLES_GetFont (LPCWSTR lpStringStart, LPCWSTR lpStringEnd, LPCWSTR *lpValEnd, LOGFONTW* logfont);
 
-extern int alphaBlendMode;
-
 #define MSSTYLES_VERSION 0x0003
 
 static PTHEME_FILE tfActiveTheme;
-- 
2.27.0



More information about the wine-devel mailing list