Francois Gouget : user32: SCROLL_SetNCSbState() is not used anymore so remove it.

Alexandre Julliard julliard at winehq.org
Tue May 3 13:30:57 CDT 2011


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Tue May  3 00:38:02 2011 +0200

user32: SCROLL_SetNCSbState() is not used anymore so remove it.

---

 dlls/user32/controls.h |    2 --
 dlls/user32/scroll.c   |   26 --------------------------
 2 files changed, 0 insertions(+), 28 deletions(-)

diff --git a/dlls/user32/controls.h b/dlls/user32/controls.h
index 065daeb..66d6659 100644
--- a/dlls/user32/controls.h
+++ b/dlls/user32/controls.h
@@ -179,8 +179,6 @@ extern void NC_GetSysPopupPos( HWND hwnd, RECT* rect ) DECLSPEC_HIDDEN;
 /* scrollbar */
 extern void SCROLL_DrawScrollBar( HWND hwnd, HDC hdc, INT nBar, BOOL arrows, BOOL interior ) DECLSPEC_HIDDEN;
 extern void SCROLL_TrackScrollBar( HWND hwnd, INT scrollbar, POINT pt ) DECLSPEC_HIDDEN;
-extern INT SCROLL_SetNCSbState( HWND hwnd, int vMin, int vMax, int vPos,
-                                int hMin, int hMax, int hPos ) DECLSPEC_HIDDEN;
 
 /* combo box */
 
diff --git a/dlls/user32/scroll.c b/dlls/user32/scroll.c
index fd73bf4..6e6bc37 100644
--- a/dlls/user32/scroll.c
+++ b/dlls/user32/scroll.c
@@ -1919,32 +1919,6 @@ BOOL WINAPI SetScrollRange(HWND hwnd, INT nBar, INT minVal, INT maxVal, BOOL bRe
 
 
 /*************************************************************************
- *	     SCROLL_SetNCSbState
- *
- * Updates both scrollbars at the same time. Used by MDI CalcChildScroll().
- */
-INT SCROLL_SetNCSbState(HWND hwnd, int vMin, int vMax, int vPos,
-                        int hMin, int hMax, int hPos)
-{
-    SCROLLINFO vInfo, hInfo;
-
-    vInfo.cbSize = hInfo.cbSize = sizeof(SCROLLINFO);
-    vInfo.nMin   = vMin;
-    vInfo.nMax   = vMax;
-    vInfo.nPos   = vPos;
-    hInfo.nMin   = hMin;
-    hInfo.nMax   = hMax;
-    hInfo.nPos   = hPos;
-    vInfo.fMask  = hInfo.fMask = SIF_RANGE | SIF_POS;
-
-    SCROLL_SetScrollInfo( hwnd, SB_VERT, &vInfo, TRUE );
-    SCROLL_SetScrollInfo( hwnd, SB_HORZ, &hInfo, TRUE );
-
-    return 0;
-}
-
-
-/*************************************************************************
  *           GetScrollRange   (USER32.@)
  *
  * Gets the range of the scroll bar.




More information about the wine-cvs mailing list