removing #ifdef MOZ_NEW_CACHEs since they arn't needed anymore (and they are gone from the rest of the code) r=jst

This commit is contained in:
pavlov%netscape.com 2001-05-23 07:01:38 +00:00
Родитель d9e16aae2f
Коммит efeddaf9d5
2 изменённых файлов: 0 добавлений и 10 удалений

Просмотреть файл

@ -128,13 +128,9 @@ NS_IMETHODIMP imgLoader::LoadImage(nsIURI *aURI, nsILoadGroup *aLoadGroup, imgID
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgLoader::LoadImage -- Created new imgRequest [request=%p]\n", this, request));
#ifdef MOZ_NEW_CACHE
imgCache::Put(aURI, request, getter_AddRefs(entry));
request->Init(newChannel, entry);
#else
request->Init(newChannel, nsnull);
#endif
PR_LOG(gImgLog, PR_LOG_DEBUG,
("[this=%p] imgLoader::LoadImage -- Calling channel->AsyncOpen()\n", this));

Просмотреть файл

@ -393,7 +393,6 @@ NS_IMETHODIMP imgRequest::OnStartDecode(imgIRequest *request, nsISupports *cx)
if (proxy) proxy->OnStartDecode(request, cx);
}
#ifdef MOZ_NEW_CACHE
/* In the case of streaming jpegs, it is possible to get multiple OnStartDecodes which
indicates the beginning of a new decode.
The cache entry's size therefore needs to be reset to 0 here. If we do not do this,
@ -401,7 +400,6 @@ NS_IMETHODIMP imgRequest::OnStartDecode(imgIRequest *request, nsISupports *cx)
*/
if (mCacheEntry)
mCacheEntry->SetDataSize(0);
#endif
return NS_OK;
}
@ -467,7 +465,6 @@ NS_IMETHODIMP imgRequest::OnStopFrame(imgIRequest *request, nsISupports *cx, gfx
LOG_SCOPE(gImgLog, "imgRequest::OnStopFrame");
#ifdef MOZ_NEW_CACHE
if (mCacheEntry) {
PRUint32 cacheSize = 0;
@ -481,7 +478,6 @@ NS_IMETHODIMP imgRequest::OnStopFrame(imgIRequest *request, nsISupports *cx, gfx
mCacheEntry->SetDataSize(cacheSize + imageSize + alphaSize);
}
#endif
PRInt32 count = mObservers.Count();
for (PRInt32 i = 0; i < count; i++) {
@ -568,7 +564,6 @@ NS_IMETHODIMP imgRequest::OnStartRequest(nsIRequest *aRequest, nsISupports *ctxt
if (proxy) proxy->OnStartRequest(aRequest, ctxt);
}
#if defined(MOZ_NEW_CACHE)
nsCOMPtr<nsIChannel> chan(do_QueryInterface(aRequest));
/* get the expires info */
@ -590,7 +585,6 @@ NS_IMETHODIMP imgRequest::OnStartRequest(nsIRequest *aRequest, nsISupports *ctxt
}
}
}
#endif
return NS_OK;
}