From 3f2d27728765d4ff29b5cc3e30b193daab32f570 Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Thu, 8 Mar 2012 13:06:38 +0100 Subject: [PATCH] Bug 732877: Remove no-longer-used variable 'oldPrincipal' from nsGlobalWindow.cpp. r=jst --- dom/base/nsGlobalWindow.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp index 02f49b0ad53..7b4193bf1db 100644 --- a/dom/base/nsGlobalWindow.cpp +++ b/dom/base/nsGlobalWindow.cpp @@ -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