Bug 582719, remove unused GetParentMenu method that was missed by 1ca7e8b00fbb
authorNeil Deakin <neil@mozilla.com>
Fri, 24 Aug 2012 08:41:20 -0400
changeset 105325 0363ed04a870419c1e72e871065b2716846ecc2c
parent 105324 0e5c7b2f7d61329c1e6ca9f18e52320db279be5c
child 105326 e048ac9eb279b4140bf6e97812fbabecadf6a576
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
bugs582719
milestone17.0a1
Bug 582719, remove unused GetParentMenu method that was missed by 1ca7e8b00fbb
layout/xul/base/src/nsMenuPopupFrame.h
--- a/layout/xul/base/src/nsMenuPopupFrame.h
+++ b/layout/xul/base/src/nsMenuPopupFrame.h
@@ -204,25 +204,16 @@ public:
   nsMenuFrame* Enter(nsGUIEvent* aEvent);
 
   nsPopupType PopupType() const { return mPopupType; }
   bool IsMenu() { return mPopupType == ePopupTypeMenu; }
   bool IsOpen() { return mPopupState == ePopupOpen || mPopupState == ePopupOpenAndVisible; }
 
   bool IsDragPopup() { return mIsDragPopup; }
 
-  // returns the parent menupopup, if any
-  nsMenuFrame* GetParentMenu() {
-    nsIFrame* parent = GetParent();
-    if (parent && parent->GetType() == nsGkAtoms::menuFrame) {
-      return static_cast<nsMenuFrame *>(parent);
-    }
-    return nullptr;
-  }
-
   static nsIContent* GetTriggerContent(nsMenuPopupFrame* aMenuPopupFrame);
   void ClearTriggerContent() { mTriggerContent = nullptr; }
 
   // returns true if the popup is in a content shell, or false for a popup in
   // a chrome shell
   bool IsInContentShell() { return mInContentShell; }
 
   // the Initialize methods are used to set the anchor position for