Bug 1334097 - Remove unused variable. r=billm, a=bustage
authorRyan VanderMeulen <ryanvm@gmail.com>
Thu, 18 May 2017 14:41:14 -0400
changeset 641672 2f30955c1dca3c1664668c09624346c582b9a1a6
parent 641671 f80a49c81a40d923cb2c617cacba1c4e37d33fe4
child 641673 ccbfecefae5a891c579f24d68dd07bc06e3ecde4
push id72608
push userbmo:hskupin@gmail.com
push dateMon, 07 Aug 2017 13:41:29 +0000
reviewersbillm, bustage
bugs1334097
milestone52.1.2
Bug 1334097 - Remove unused variable. r=billm, a=bustage
ipc/glue/MessageChannel.cpp
--- a/ipc/glue/MessageChannel.cpp
+++ b/ipc/glue/MessageChannel.cpp
@@ -1760,29 +1760,26 @@ MessageChannel::ShouldDeferInterruptMess
     // the other side.
     if (aMsg.interrupt_remote_stack_depth_guess() == RemoteViewOfStackDepth(aStackDepth)) {
         return false;
     }
 
     // Interrupt in-calls have raced. The winner, if there is one, gets to defer
     // processing of the other side's in-call.
     bool defer;
-    const char* winner;
     const MessageInfo parentMsgInfo =
         (mSide == ChildSide) ? MessageInfo(aMsg) : mInterruptStack.top();
     const MessageInfo childMsgInfo =
         (mSide == ChildSide) ? mInterruptStack.top() : MessageInfo(aMsg);
     switch (mListener->MediateInterruptRace(parentMsgInfo, childMsgInfo))
     {
         case RIPChildWins:
-            winner = "child";
             defer = (mSide == ChildSide);
             break;
         case RIPParentWins:
-            winner = "parent";
             defer = (mSide != ChildSide);
             break;
         case RIPError:
             MOZ_CRASH("NYI: 'Error' Interrupt race policy");
         default:
             MOZ_CRASH("not reached");
     }