Andrew Talbot : uxtheme: Remove unused variable.

Alexandre Julliard julliard at winehq.org
Wed Apr 30 06:57:07 CDT 2008


Module: wine
Branch: master
Commit: 471fb146a4857e21d938fdaca2472ef5e4f1777b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=471fb146a4857e21d938fdaca2472ef5e4f1777b

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Tue Apr 29 21:29:31 2008 +0100

uxtheme: Remove unused variable.

---

 dlls/uxtheme/draw.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/dlls/uxtheme/draw.c b/dlls/uxtheme/draw.c
index 9c7d62b..8b3b959 100644
--- a/dlls/uxtheme/draw.c
+++ b/dlls/uxtheme/draw.c
@@ -196,7 +196,6 @@ static PTHEME_PROPERTY UXTHEME_SelectImage(HTHEME hTheme, HDC hdc, int iPartId,
                 WCHAR szPath[MAX_PATH];
                 int imagelayout = IL_HORIZONTAL;
                 int imagecount = 1;
-                int imagenum;
                 BITMAP bmp;
                 HBITMAP hBmp;
                 BOOL hasAlpha;
@@ -209,7 +208,6 @@ static PTHEME_PROPERTY UXTHEME_SelectImage(HTHEME hTheme, HDC hdc, int iPartId,
                 GetThemeEnumValue(hTheme, iPartId, iStateId, TMT_IMAGELAYOUT, &imagelayout);
                 GetThemeInt(hTheme, iPartId, iStateId, TMT_IMAGECOUNT, &imagecount);
 
-                imagenum = max (min (imagecount, iStateId), 1) - 1;
                 GetObjectW(hBmp, sizeof(bmp), &bmp);
                 if(imagelayout == IL_VERTICAL) {
                     reqsize.x = bmp.bmWidth;




More information about the wine-cvs mailing list