Fix for bug #13700. Removed a warning that's no longer needed

git-svn-id: svn://10.0.0.236/trunk@47281 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com 1999-09-14 04:43:16 +00:00
parent 3dcc1e050e
commit 23a52e2e24
2 changed files with 2 additions and 16 deletions

View File

@ -265,14 +265,7 @@ FrameManager::SetPrimaryFrameFor(nsIContent* aContent,
}
// Add a mapping to the hash table
nsIFrame* oldPrimaryFrame;
oldPrimaryFrame = (nsIFrame*)mPrimaryFrameMap->Insert(aContent, (void*)aPrimaryFrame);
#ifdef NS_DEBUG
if (oldPrimaryFrame && (oldPrimaryFrame != aPrimaryFrame)) {
NS_WARNING("overwriting current primary frame");
}
#endif
mPrimaryFrameMap->Insert(aContent, (void*)aPrimaryFrame);
}
return NS_OK;
}

View File

@ -265,14 +265,7 @@ FrameManager::SetPrimaryFrameFor(nsIContent* aContent,
}
// Add a mapping to the hash table
nsIFrame* oldPrimaryFrame;
oldPrimaryFrame = (nsIFrame*)mPrimaryFrameMap->Insert(aContent, (void*)aPrimaryFrame);
#ifdef NS_DEBUG
if (oldPrimaryFrame && (oldPrimaryFrame != aPrimaryFrame)) {
NS_WARNING("overwriting current primary frame");
}
#endif
mPrimaryFrameMap->Insert(aContent, (void*)aPrimaryFrame);
}
return NS_OK;
}