Remove two unused variables, no bug
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 27 Aug 2012 17:30:56 -0400
changeset 105690 01c626bb5af90be5435cb67aaad5b9b000ab4bfa
parent 105689 c9e473186b60d28924429b5734e1163c29c58bb5
child 105691 fc16f1c44039ecb90733417487fbed2bac1c0873
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
milestone18.0a1
Remove two unused variables, no bug
embedding/browser/webBrowser/nsWebBrowserContentPolicy.cpp
widget/gtk2/nsWindow.cpp
--- a/embedding/browser/webBrowser/nsWebBrowserContentPolicy.cpp
+++ b/embedding/browser/webBrowser/nsWebBrowserContentPolicy.cpp
@@ -89,15 +89,14 @@ nsWebBrowserContentPolicy::ShouldProcess
     // Object tags will always open channels with TYPE_OBJECT, but may end up
     // loading with TYPE_IMAGE or TYPE_DOCUMENT as their final type, so we block
     // actual-plugins at the process stage
     if (contentType != nsIContentPolicy::TYPE_OBJECT) {
         return NS_OK;
     }
 
     nsIDocShell *shell = NS_CP_GetDocShellFromContext(requestingContext);
-    bool allowed;
     if (shell && (!shell->PluginsAllowedInCurrentDoc())) {
         *shouldProcess = nsIContentPolicy::REJECT_TYPE;
     }
 
     return NS_OK;
 }
--- a/widget/gtk2/nsWindow.cpp
+++ b/widget/gtk2/nsWindow.cpp
@@ -2106,17 +2106,16 @@ nsWindow::OnExposeEvent(cairo_t *cr)
         g_free(rects);
 #else
         cairo_rectangle_list_destroy(rects);
 #endif
         return TRUE;
     }
     // If this widget uses OMTC...
     if (GetLayerManager()->AsShadowForwarder() && GetLayerManager()->AsShadowForwarder()->HasShadowManager()) {
-        nsEventStatus status;
 #if defined(MOZ_WIDGET_GTK2)
         nsRefPtr<gfxContext> ctx = new gfxContext(GetThebesSurface());
 #else
         nsRefPtr<gfxContext> ctx = new gfxContext(GetThebesSurface(cr));
 #endif
         nsBaseWidget::AutoLayerManagerSetup
           setupLayerManager(this, ctx, mozilla::layers::BUFFER_NONE);