Bug 776849 - Fix unused variable in nsHistory::Go; r=sicking

This commit is contained in:
Aryeh Gregor 2012-07-27 17:03:28 +03:00
parent 25aa1ea61e
commit 0ca8b1f3d9

View File

@ -239,8 +239,8 @@ nsHistory::Go(PRInt32 aDelta)
PRInt32 curIndex=-1;
PRInt32 len = 0;
nsresult rv = session_history->GetIndex(&curIndex);
rv = session_history->GetCount(&len);
session_history->GetIndex(&curIndex);
session_history->GetCount(&len);
PRInt32 index = curIndex + aDelta;
if (index > -1 && index < len)