Bug 821843: Remove no-longer-used variable 'isJava' from nsPluginHost.cpp, to fix GCC 4.7 warning (treated as error in enable-warnings-as-errors builds). r=johns
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 14 Dec 2012 13:08:49 -0800
changeset 125164 e7b35e1e28d4c6a58a8e0f6d7c540c8608655c03
parent 125163 034a28d4d68b8c7e5834f1d5db562b3da0d6ee21
child 125165 5706b21f8c953ad8035702157bbb1cdc7fe9a949
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohns
bugs821843
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 821843: Remove no-longer-used variable 'isJava' from nsPluginHost.cpp, to fix GCC 4.7 warning (treated as error in enable-warnings-as-errors builds). r=johns
dom/plugins/base/nsPluginHost.cpp
--- a/dom/plugins/base/nsPluginHost.cpp
+++ b/dom/plugins/base/nsPluginHost.cpp
@@ -948,22 +948,16 @@ nsPluginHost::InstantiatePluginInstance(
   }
 
   if (tagType != nsPluginTagType_Embed &&
       tagType != nsPluginTagType_Applet &&
       tagType != nsPluginTagType_Object) {
     return NS_ERROR_FAILURE;
   }
 
-  bool isJava = false;
-  nsPluginTag* pluginTag = FindPluginForType(aMimeType, true);
-  if (pluginTag) {
-    isJava = pluginTag->mIsJavaPlugin;
-  }
-
   rv = SetUpPluginInstance(aMimeType, aURL, instanceOwner);
   if (NS_FAILED(rv)) {
     return NS_ERROR_FAILURE;
   }
 
   nsRefPtr<nsNPAPIPluginInstance> instance;
   rv = instanceOwner->GetInstance(getter_AddRefs(instance));
   if (NS_FAILED(rv)) {