Bug 666714: Remove unused variable 'start' from nsScanner::Append. r=hsivonen
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 24 Jun 2011 01:50:25 -0700
changeset 71700 13b3cfa7f2244ebb23324e3488e3965741fed9fe
parent 71699 2efc1f37ce92c4e6c5378508c92ec10ba309a587
child 71701 81d285773780fab0f2083d43bf601db498fadc26
push id20601
push usermak77@bonardo.net
push dateSat, 25 Jun 2011 10:05:20 +0000
treeherdermozilla-central@48ad4ffc4230 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsivonen
bugs666714
milestone7.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 666714: Remove unused variable 'start' from nsScanner::Append. r=hsivonen
parser/htmlparser/src/nsScanner.cpp
--- a/parser/htmlparser/src/nsScanner.cpp
+++ b/parser/htmlparser/src/nsScanner.cpp
@@ -296,24 +296,23 @@ nsresult nsScanner::Append(const nsAStri
  *  
  *  @update  gess 5/21/98
  *  @param   
  *  @return  
  */
 nsresult nsScanner::Append(const char* aBuffer, PRUint32 aLen,
                            nsIRequest *aRequest)
 {
-  nsresult res=NS_OK;
-  PRUnichar *unichars, *start;
+  nsresult res = NS_OK;
   if (mUnicodeDecoder) {
     PRInt32 unicharBufLen = 0;
     mUnicodeDecoder->GetMaxLength(aBuffer, aLen, &unicharBufLen);
     nsScannerString::Buffer* buffer = nsScannerString::AllocBuffer(unicharBufLen + 1);
     NS_ENSURE_TRUE(buffer,NS_ERROR_OUT_OF_MEMORY);
-    start = unichars = buffer->DataStart();
+    PRUnichar *unichars = buffer->DataStart();
 
     PRInt32 totalChars = 0;
     PRInt32 unicharLength = unicharBufLen;
     PRInt32 errorPos = -1;
 
     do {
       PRInt32 srcLength = aLen;
       res = mUnicodeDecoder->Convert(aBuffer, &srcLength, unichars, &unicharLength);