Zhiyi Zhang : uxtheme: Remove unused code.

Alexandre Julliard julliard at winehq.org
Mon Feb 22 15:43:22 CST 2021


Module: wine
Branch: master
Commit: c6b100ef98a48585214b501aa93b2cc5c46f1057
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c6b100ef98a48585214b501aa93b2cc5c46f1057

Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date:   Mon Feb 22 22:33:08 2021 +0800

uxtheme: Remove unused code.

Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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;




More information about the wine-cvs mailing list