diff --git a/netwerk/protocol/http/Http2Compression.cpp b/netwerk/protocol/http/Http2Compression.cpp index 62aced440e4f..15ca49c20131 100644 --- a/netwerk/protocol/http/Http2Compression.cpp +++ b/netwerk/protocol/http/Http2Compression.cpp @@ -323,15 +323,12 @@ void Http2BaseCompressor::DumpState(const char* preamble) { void Http2BaseCompressor::SetMaxBufferSizeInternal(uint32_t maxBufferSize) { MOZ_ASSERT(maxBufferSize <= mMaxBufferSetting); - uint32_t removedCount = 0; - LOG(("Http2BaseCompressor::SetMaxBufferSizeInternal %u called", maxBufferSize)); while (mHeaderTable.VariableLength() && (mHeaderTable.ByteCount() > maxBufferSize)) { mHeaderTable.RemoveElement(); - ++removedCount; } mMaxBuffer = maxBufferSize; diff --git a/netwerk/streamconv/converters/nsDirIndexParser.cpp b/netwerk/streamconv/converters/nsDirIndexParser.cpp index d910a30aad85..882f60db5158 100644 --- a/netwerk/streamconv/converters/nsDirIndexParser.cpp +++ b/netwerk/streamconv/converters/nsDirIndexParser.cpp @@ -373,11 +373,7 @@ nsDirIndexParser::OnDataAvailable(nsIRequest* aRequest, nsIInputStream* aStream, nsresult nsDirIndexParser::ProcessData(nsIRequest* aRequest) { if (!mListener) return NS_ERROR_FAILURE; - int32_t numItems = 0; - while (true) { - ++numItems; - int32_t eol = mBuf.FindCharInSet("\n\r", mLineStart); if (eol < 0) break; mBuf.SetCharAt(char16_t('\0'), eol);