mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
parent
e87890d893
commit
b882e7c6be
7 changed files with 0 additions and 212 deletions
|
|
@ -1292,29 +1292,6 @@ CacheIndex::GetCacheSize(uint32_t *_retval)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
// static
|
||||
nsresult
|
||||
CacheIndex::GetEntryFileCount(uint32_t *_retval)
|
||||
{
|
||||
LOG(("CacheIndex::GetEntryFileCount()"));
|
||||
|
||||
StaticMutexAutoLock lock(sLock);
|
||||
|
||||
RefPtr<CacheIndex> index = gInstance;
|
||||
|
||||
if (!index) {
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
|
||||
if (!index->IsIndexUsable()) {
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
}
|
||||
|
||||
*_retval = index->mIndexStats.ActiveEntriesCount();
|
||||
LOG(("CacheIndex::GetEntryFileCount() - returning %u", *_retval));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// static
|
||||
nsresult
|
||||
CacheIndex::GetCacheStats(nsILoadContextInfo *aInfo, uint32_t *aSize, uint32_t *aCount)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue