From b117394bfc41f92dada049037613e8564c146d45 Mon Sep 17 00:00:00 2001 From: "locka%iol.ie" Date: Tue, 1 Jul 2003 12:02:15 +0000 Subject: [PATCH] Build bustage fix. Remove duplicate variable declarations and assignments. b=208093 git-svn-id: svn://10.0.0.236/trunk@144343 18797224-902f-48f8-a5cc-f745e15eee43 --- .../layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/mozilla/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp b/mozilla/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp index 751045eea2c..5fb8de62159 100644 --- a/mozilla/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp +++ b/mozilla/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp @@ -1707,17 +1707,13 @@ NS_IMETHODIMP nsTreeBodyFrame::RowCountChanged(PRInt32 aIndex, PRInt32 aCount) if (mUpdateBatchNest) return NS_OK; - PRInt32 count = PR_ABS(aCount); mRowCount += aCount; -#ifdef DEBUG - PRInt32 rowCount = mRowCount; - mView->GetRowCount(&rowCount); - NS_ASSERTION(rowCount == mRowCount, "row count did not change by the amount suggested, check caller"); -#endif - PRInt32 count = PR_ABS(aCount); PRInt32 rowCount; mView->GetRowCount(&rowCount); +#ifdef DEBUG + NS_ASSERTION(rowCount == mRowCount, "row count did not change by the amount suggested, check caller"); +#endif PRInt32 last; GetLastVisibleRow(&last);