[PATCH] Remove commented out lines

Nikolay Sivov nsivov at codeweavers.com
Mon Jun 7 19:51:47 CDT 2010


---
 dlls/comctl32/treeview.c |   18 ++----------------
 1 files changed, 2 insertions(+), 16 deletions(-)

diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c
index 34454a9..ad1f441 100644
--- a/dlls/comctl32/treeview.c
+++ b/dlls/comctl32/treeview.c
@@ -852,15 +852,9 @@ static INT TREEVIEW_NotifyFormat (TREEVIEW_INFO *infoPtr, HWND hwndFrom, UINT nC
 static VOID
 TREEVIEW_ComputeItemInternalMetrics(const TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *item)
 {
-    /* Same effect, different optimisation. */
-#if 0
-    BOOL lar = ((infoPtr->dwStyle & TVS_LINESATROOT)
-		&& (infoPtr->dwStyle & (TVS_HASLINES|TVS_HASBUTTONS)));
-#else
-    BOOL lar = ((infoPtr->dwStyle
-		 & (TVS_LINESATROOT|TVS_HASLINES|TVS_HASBUTTONS))
+    /* has TVS_LINESATROOT and (TVS_HASLINES|TVS_HASBUTTONS) */
+    BOOL lar = ((infoPtr->dwStyle & (TVS_LINESATROOT|TVS_HASLINES|TVS_HASBUTTONS))
 		> TVS_LINESATROOT);
-#endif
 
     item->linesOffset = infoPtr->uIndent * (lar ? item->iLevel : item->iLevel - 1)
 	- infoPtr->scrollX;
@@ -3451,10 +3445,6 @@ TREEVIEW_ExpandMsg(TREEVIEW_INFO *infoPtr, UINT flag, HTREEITEM wineItem)
     default:
 	return 0;
     }
-
-#if 0
-    TRACE("Exiting, Item %p state is now %d...\n", wineItem, wineItem->state);
-#endif
 }
 
 /* Hit-Testing **********************************************************/
@@ -5028,10 +5018,6 @@ TREEVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs)
     infoPtr->root->visibleOrder = -1;
 
     infoPtr->hwndNotify = lpcs->hwndParent;
-#if 0
-    infoPtr->bTransparent = ( GetWindowLongW( hwnd, GWL_STYLE) & TBSTYLE_FLAT);
-#endif
-
     infoPtr->hwndToolTip = 0;
 
     infoPtr->bNtfUnicode = IsWindowUnicode (hwnd);
-- 
1.5.6.5


--------------050303090702090306080805--



More information about the wine-patches mailing list