Bug 977723 - Remove two unused vars in accessible/. r=surkov
authorAndrew McCreight <continuation@gmail.com>
Fri, 28 Feb 2014 09:11:38 -0500
changeset 171508 1e7a52cc11588971ff831e15205c5772e7f0f66e
parent 171507 7e217afc70021b83999d60bf39b7a5cd90a7ef36
child 171509 ea6bdc02e0b60388b6f992e53f105412ed539d85
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewerssurkov
bugs977723
milestone30.0a1
Bug 977723 - Remove two unused vars in accessible/. r=surkov
accessible/src/generic/Accessible.cpp
accessible/src/generic/HyperTextAccessible.cpp
--- a/accessible/src/generic/Accessible.cpp
+++ b/accessible/src/generic/Accessible.cpp
@@ -928,17 +928,16 @@ Accessible::GetBoundsRect(nsRect& aTotal
       nsIFrame* canvasFrame = frame->GetParent();
       while (canvasFrame && (canvasFrame->GetType() != nsGkAtoms::HTMLCanvasFrame))
         canvasFrame = canvasFrame->GetParent();
 
       // make the canvas the bounding frame
       if (canvasFrame) {
         *aBoundingFrame = canvasFrame;
 
-        nsPresContext* presContext = mDoc->PresContext();
         aTotalBounds = *hitRegionRect;
 
         return;
       }
     }
 
     *aBoundingFrame = nsLayoutUtils::GetContainingBlockForClientRect(frame);
     aTotalBounds = nsLayoutUtils::
--- a/accessible/src/generic/HyperTextAccessible.cpp
+++ b/accessible/src/generic/HyperTextAccessible.cpp
@@ -1786,17 +1786,16 @@ HyperTextAccessible::GetSpellTextAttribu
   if (!domSel)
     return NS_OK;
 
   int32_t rangeCount = domSel->GetRangeCount();
   if (rangeCount <= 0)
     return NS_OK;
 
   int32_t startHTOffset = 0, endHTOffset = 0;
-  nsresult rv = NS_OK;
   for (int32_t idx = 0; idx < rangeCount; idx++) {
     nsRange* range = domSel->GetRangeAt(idx);
     if (range->Collapsed())
       continue;
 
     // See if the point comes after the range in which case we must continue in
     // case there is another range after this one.
     nsINode* endNode = range->GetEndParent();