Nikolay Sivov : comctl32/monthcal: Remove unused variable (Clang).

Alexandre Julliard julliard at winehq.org
Mon Jul 4 13:46:05 CDT 2011


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sun Jul  3 11:37:14 2011 +0400

comctl32/monthcal: Remove unused variable (Clang).

---

 dlls/comctl32/monthcal.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c
index ebe53f4..ccede7f 100644
--- a/dlls/comctl32/monthcal.c
+++ b/dlls/comctl32/monthcal.c
@@ -1004,7 +1004,7 @@ static void MONTHCAL_PaintLeadTrailMonths(const MONTHCAL_INFO *infoPtr, HDC hdc,
 static void MONTHCAL_PaintCalendar(const MONTHCAL_INFO *infoPtr, HDC hdc, const PAINTSTRUCT *ps, INT calIdx)
 {
   const SYSTEMTIME *date = &infoPtr->calendars[calIdx].month;
-  INT prev_month, i, j, length;
+  INT i, j, length;
   RECT r, fill_bk_rect;
   SYSTEMTIME st;
   WCHAR buf[80];
@@ -1026,9 +1026,6 @@ static void MONTHCAL_PaintCalendar(const MONTHCAL_INFO *infoPtr, HDC hdc, const
               infoPtr->calendars[calIdx].title.bottom + infoPtr->textHeight + 1);
   SelectObject(hdc, old_pen);
 
-  prev_month = date->wMonth - 1;
-  if (prev_month == 0) prev_month = 12;
-
   infoPtr->calendars[calIdx].wdays.left = infoPtr->calendars[calIdx].days.left =
       infoPtr->calendars[calIdx].weeknums.right;
 




More information about the wine-cvs mailing list