Bug 1202085 - Part 1: Remove imgICache::RemoveEntry(); r=seth

This commit is contained in:
Ehsan Akhgari 2015-10-26 16:02:52 -04:00
parent e8a44dc4f7
commit 3e757bfddd
2 changed files with 1 additions and 20 deletions

View File

@ -17,7 +17,7 @@ interface nsIProperties;
* @version 0.1
* @see imagelib2
*/
[scriptable, builtinclass, uuid(b06e0fa5-d6e2-4fa3-8fc0-7775aed96522)]
[scriptable, builtinclass, uuid(6e62f5c9-95b5-4139-bb59-9cbaf14e9b3c)]
interface imgICache : nsISupports
{
/**
@ -28,15 +28,6 @@ interface imgICache : nsISupports
*/
void clearCache(in boolean chrome);
/**
* Evict images from the cache.
*
* @param uri The URI to remove.
* @throws NS_ERROR_NOT_AVAILABLE if \a uri was unable to be removed from
* the cache.
*/
void removeEntry(in nsIURI uri);
/**
* Find Properties
* Used to get properties such as 'type' and 'content-disposition'

View File

@ -1334,16 +1334,6 @@ imgLoader::ClearCache(bool chrome)
}
}
NS_IMETHODIMP
imgLoader::RemoveEntry(nsIURI* aURI)
{
if (aURI && RemoveFromCache(ImageCacheKey(aURI))) {
return NS_OK;
}
return NS_ERROR_NOT_AVAILABLE;
}
NS_IMETHODIMP
imgLoader::FindEntryProperties(nsIURI* uri, nsIProperties** _retval)
{