comctl32/listview: Remove duplicated operation (LLVM/Clang).

This commit is contained in:
Nikolay Sivov 2011-02-05 03:35:01 +03:00 committed by Alexandre Julliard
parent e8b73fa8f3
commit 6992ccc042
1 changed files with 3 additions and 5 deletions

View File

@ -5084,8 +5084,6 @@ enddraw:
static DWORD LISTVIEW_ApproximateViewRect(const LISTVIEW_INFO *infoPtr, INT nItemCount,
WORD wWidth, WORD wHeight)
{
INT nItemCountPerColumn = 1;
INT nColumnCount = 0;
DWORD dwViewRect = 0;
if (nItemCount == -1)
@ -5093,6 +5091,9 @@ static DWORD LISTVIEW_ApproximateViewRect(const LISTVIEW_INFO *infoPtr, INT nIte
if (infoPtr->uView == LV_VIEW_LIST)
{
INT nItemCountPerColumn = 1;
INT nColumnCount = 0;
if (wHeight == 0xFFFF)
{
/* use current height */
@ -5153,9 +5154,6 @@ static DWORD LISTVIEW_ApproximateViewRect(const LISTVIEW_INFO *infoPtr, INT nIte
nItemWidth = infoPtr->iconSpacing.cx;
nItemHeight = infoPtr->iconSpacing.cy;
if (nItemCount == -1)
nItemCount = infoPtr->nItemCount;
if (wWidth == 0xffff)
wWidth = infoPtr->rcList.right - infoPtr->rcList.left;