[2/2] comctl32/listview: Remove some dead code

Nikolay Sivov nsivov at codeweavers.com
Sun Jan 13 16:48:47 CST 2013


Remove some dead code
-------------- next part --------------
>From 44a96d19dc1ce306daa3f40d1aebf128c429f636 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sat, 12 Jan 2013 21:33:13 +0400
Subject: [PATCH 2/4] Remove some dead code

---
 dlls/comctl32/listview.c |   13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 75aa51b..49da83c 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -3490,26 +3490,15 @@ static void LISTVIEW_ShiftFocus(LISTVIEW_INFO *infoPtr, INT focus, INT item, INT
 */
 static void LISTVIEW_ShiftIndices(LISTVIEW_INFO *infoPtr, INT nItem, INT direction)
 {
-    BOOL bOldChange;
-
-    /* temporarily disable change notification while shifting items */
-    bOldChange = infoPtr->bDoChangeNotify;
-    infoPtr->bDoChangeNotify = FALSE;
-
     TRACE("Shifting %i, %i steps\n", nItem, direction);
 
     ranges_shift(infoPtr->selectionRanges, nItem, direction, infoPtr->nItemCount);
-
     assert(abs(direction) == 1);
-
     infoPtr->nSelectionMark = shift_item(infoPtr, infoPtr->nSelectionMark, nItem, direction);
-    
-    /* But we are not supposed to modify nHotItem! */
 
-    infoPtr->bDoChangeNotify = bOldChange;
+    /* But we are not supposed to modify nHotItem! */
 }
 
-
 /**
  * DESCRIPTION:
  * Adds a block of selections.
-- 
1.7.10.4




More information about the wine-patches mailing list