Gerald Pfeifer : comctl32: Remove variable scrollRange which is not really used from PAGER_NCCalcSize .

Alexandre Julliard julliard at winehq.org
Wed May 5 11:08:35 CDT 2010


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

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Wed May  5 00:24:41 2010 +0200

comctl32: Remove variable scrollRange which is not really used from PAGER_NCCalcSize.

---

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

diff --git a/dlls/comctl32/pager.c b/dlls/comctl32/pager.c
index fdf470c..f3461fd 100644
--- a/dlls/comctl32/pager.c
+++ b/dlls/comctl32/pager.c
@@ -841,7 +841,6 @@ static LRESULT
 PAGER_NCCalcSize(PAGER_INFO* infoPtr, WPARAM wParam, LPRECT lpRect)
 {
     RECT rcChild, rcWindow;
-    INT scrollRange;
 
     /*
      * lpRect points to a RECT struct.  On entry, the struct
@@ -863,8 +862,6 @@ PAGER_NCCalcSize(PAGER_INFO* infoPtr, WPARAM wParam, LPRECT lpRect)
 	infoPtr->nWidth = lpRect->right - lpRect->left;
 	PAGER_CalcSize (infoPtr, &infoPtr->nWidth, TRUE);
 
-	scrollRange = infoPtr->nWidth - (rcWindow.right - rcWindow.left);
-
 	if (infoPtr->TLbtnState && (lpRect->left + infoPtr->nButtonSize < lpRect->right))
 	    lpRect->left += infoPtr->nButtonSize;
 	if (infoPtr->BRbtnState && (lpRect->right - infoPtr->nButtonSize > lpRect->left))
@@ -875,8 +872,6 @@ PAGER_NCCalcSize(PAGER_INFO* infoPtr, WPARAM wParam, LPRECT lpRect)
 	infoPtr->nHeight = lpRect->bottom - lpRect->top;
 	PAGER_CalcSize (infoPtr, &infoPtr->nHeight, FALSE);
 
-	scrollRange = infoPtr->nHeight - (rcWindow.bottom - rcWindow.top);
-
 	if (infoPtr->TLbtnState && (lpRect->top + infoPtr->nButtonSize < lpRect->bottom))
 	    lpRect->top += infoPtr->nButtonSize;
 	if (infoPtr->BRbtnState && (lpRect->bottom - infoPtr->nButtonSize > lpRect->top))




More information about the wine-cvs mailing list