Bug 1334221 - Remove the unused PluginModuleChild::mTransport field. r=jimm draft
authorAndrew McCreight <continuation@gmail.com>
Wed, 25 Jan 2017 16:29:46 -0800
changeset 466882 e8a8904746252413c6d46657c06a3a187a208c0c
parent 466386 90f199e344e78f5b6fd5b3eb031451d1d9b81fa3
child 543546 d9e577d8a8660c73ad4c80de0c29dc744027afaa
push id43028
push userbmo:continuation@gmail.com
push dateThu, 26 Jan 2017 19:41:09 +0000
reviewersjimm
bugs1334221
milestone54.0a1
Bug 1334221 - Remove the unused PluginModuleChild::mTransport field. r=jimm MozReview-Commit-ID: 77zCom8y6Ty
dom/plugins/ipc/PluginModuleChild.cpp
dom/plugins/ipc/PluginModuleChild.h
--- a/dom/plugins/ipc/PluginModuleChild.cpp
+++ b/dom/plugins/ipc/PluginModuleChild.cpp
@@ -111,17 +111,16 @@ PluginModuleChild::CreateForContentProce
 }
 
 PluginModuleChild::PluginModuleChild(bool aIsChrome)
   : mLibrary(0)
   , mPluginFilename("")
   , mQuirks(QUIRKS_NOT_INITIALIZED)
   , mIsChrome(aIsChrome)
   , mHasShutdown(false)
-  , mTransport(nullptr)
   , mShutdownFunc(0)
   , mInitializeFunc(0)
 #if defined(OS_WIN) || defined(OS_MACOSX)
   , mGetEntryPointsFunc(0)
 #elif defined(MOZ_WIDGET_GTK)
   , mNestedLoopTimerId(0)
 #endif
 #ifdef OS_WIN
@@ -197,18 +196,16 @@ bool
 PluginModuleChild::InitForContent(base::ProcessId aParentPid,
                                   MessageLoop* aIOLoop,
                                   IPC::Channel* aChannel)
 {
     if (!CommonInit(aParentPid, aIOLoop, aChannel)) {
         return false;
     }
 
-    mTransport = aChannel;
-
     mLibrary = GetChrome()->mLibrary;
     mFunctions = GetChrome()->mFunctions;
 
     return true;
 }
 
 mozilla::ipc::IPCResult
 PluginModuleChild::RecvDisableFlashProtectedMode()
--- a/dom/plugins/ipc/PluginModuleChild.h
+++ b/dom/plugins/ipc/PluginModuleChild.h
@@ -268,17 +268,16 @@ private:
 #endif
 
     PRLibrary* mLibrary;
     nsCString mPluginFilename; // UTF8
     int mQuirks;
 
     bool mIsChrome;
     bool mHasShutdown; // true if NP_Shutdown has run
-    Transport* mTransport;
 
     // we get this from the plugin
     NP_PLUGINSHUTDOWN mShutdownFunc;
 #if defined(OS_LINUX) || defined(OS_BSD)
     NP_PLUGINUNIXINIT mInitializeFunc;
 #elif defined(OS_WIN) || defined(OS_MACOSX)
     NP_PLUGININIT mInitializeFunc;
     NP_GETENTRYPOINTS mGetEntryPointsFunc;