Fix warnings on Mac.

This commit is contained in:
gagan%netscape.com 1998-10-15 08:11:42 +00:00
parent 73b4846430
commit 89bdd0ad57
2 changed files with 3 additions and 9 deletions

View File

@ -168,10 +168,11 @@ nsCacheManager::Entries() const
if (m_pFirstModule)
{
PRInt16 count=1;
nsCacheModule* pModule = m_pFirstModule;
while (pModule = pModule->NextModule())
nsCacheModule* pModule = m_pFirstModule->NextModule();
while (pModule)
{
count++;
pModule = pModule->NextModule();
}
return count;
}

View File

@ -386,13 +386,6 @@ PRBool nsDiskModule::ReduceSizeTo(const PRUint32 i_NewSize)
if (nObjectsToFree < 1)
nObjectsToFree = 1;
//TODO
/*
if (Contains("http://gagan/"))
{
Remove(GetObject("http://gagan/"));
}
*/
while (nObjectsToFree > 0)
{
Remove(LRUObject(m_pDB));