Bug 732877: Remove no-longer-used variable 'oldPrincipal' from nsGlobalWindow.cpp. r=jst

This commit is contained in:
Daniel Holbert 2012-03-08 13:06:38 +01:00
parent bd96ca9e74
commit 3f2d277287

View File

@ -1933,12 +1933,6 @@ nsGlobalWindow::SetNewDocument(nsIDocument* aDocument,
bool reUseInnerWindow = aForceReuseInnerWindow || wouldReuseInnerWindow;
// Remember the old document's principal.
nsIPrincipal *oldPrincipal = nsnull;
if (oldDoc) {
oldPrincipal = oldDoc->NodePrincipal();
}
nsresult rv = NS_OK;
// Set mDocument even if this is an outer window to avoid