[PATCH 04/11] user32: Removed unused code.

Florian Köberle florian at fkoeberle.de
Tue Jan 20 06:52:36 CST 2009


Removed code will never be executed as the
following gets executed before the removed code:
style &= ~(WS_DLGFRAME | WS_BORDER | WS_THICKFRAME);
---
 dlls/user32/winpos.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index 72bbf2a..54eb34b 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -694,16 +694,6 @@ void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos,
         else
         {
             xinc = yinc = 0;
-            if (HAS_THICKFRAME(style))
-            {
-                xinc += GetSystemMetrics(SM_CXFRAME);
-                yinc += GetSystemMetrics(SM_CYFRAME);
-            }
-            if (style & WS_BORDER)
-            {
-                xinc += GetSystemMetrics(SM_CXBORDER);
-                yinc += GetSystemMetrics(SM_CYBORDER);
-            }
         }
         MinMax.ptMaxSize.x += 2 * xinc;
         MinMax.ptMaxSize.y += 2 * yinc;
-- 
1.5.4.3




More information about the wine-patches mailing list