From 594c2f12935504562836d469e105189db4e1c00c Mon Sep 17 00:00:00 2001 From: Makoto Kato Date: Wed, 25 Jan 2012 20:15:20 +0900 Subject: [PATCH] Bug 720957 - contentLength is unsed in nsJSONListener::OnDataAvailable. r=smaug --- dom/src/json/nsJSON.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/dom/src/json/nsJSON.cpp b/dom/src/json/nsJSON.cpp index 2dc1c36e16bf..88c5eec05aa7 100644 --- a/dom/src/json/nsJSON.cpp +++ b/dom/src/json/nsJSON.cpp @@ -634,8 +634,6 @@ nsJSONListener::OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext, nsIInputStream *aStream, PRUint32 aOffset, PRUint32 aLength) { - PRUint32 contentLength; - aStream->Available(&contentLength); nsresult rv = NS_OK; if (mNeedsConverter && mSniffBuffer.Length() < 4) {