Bug 869750 - Remove unused variables from HyperTextAccessible.cpp. r=surkov
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 07 May 2013 22:38:16 -0400
changeset 131217 439bae7c9809387f9897b4d6ba75c05cfbdc6c52
parent 131216 7b389768f7889dea9f6a2ae334aa6226d129b510
child 131218 ade6bafb19e464ff4ccc52b03bb17f6f5b43c306
push id24652
push useremorley@mozilla.com
push dateWed, 08 May 2013 14:04:08 +0000
treeherdermozilla-central@e19d0885977c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssurkov
bugs869750
milestone23.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 869750 - Remove unused variables from HyperTextAccessible.cpp. r=surkov
accessible/src/generic/HyperTextAccessible.cpp
--- a/accessible/src/generic/HyperTextAccessible.cpp
+++ b/accessible/src/generic/HyperTextAccessible.cpp
@@ -1065,19 +1065,16 @@ HyperTextAccessible::GetTextAtOffset(int
 {
   if (IsDefunct())
     return NS_ERROR_FAILURE;
 
   int32_t offset = ConvertMagicOffset(aOffset);
   if (offset < 0)
     return NS_ERROR_INVALID_ARG;
 
-  EWordMovementType wordMovementType = eDefaultBehavior;
-  bool moveForwardThenBack = true;
-
   switch (aBoundaryType) {
     case BOUNDARY_CHAR:
       return GetCharAt(aOffset, eGetAt, aText, aStartOffset, aEndOffset) ?
         NS_OK : NS_ERROR_INVALID_ARG;
 
     case BOUNDARY_WORD_START:
       *aEndOffset = FindWordBoundary(offset, eDirNext, eStartWord);
       *aStartOffset = FindWordBoundary(*aEndOffset, eDirPrevious, eStartWord);