diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-06 15:49:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-07 07:06:27 +0100 |
commit | 5cad267240a11daa0be76077f858f37679f330d7 (patch) | |
tree | 3cf47ee9cac0e6e36f38621dd9b89a8a77e3b884 /sc/source/ui | |
parent | 3efde47ec9ee091479c04129696f99dc934c3f64 (diff) |
loplugin:unusedmethods
Change-Id: Ic1ba90447575278d854af85312271c41766b776b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126422
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/cctrl/checklistmenu.cxx | 10 | ||||
-rw-r--r-- | sc/source/ui/inc/checklistmenu.hxx | 5 |
2 files changed, 0 insertions, 15 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index 7e0c9fc5c03c..83544df61145 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -291,11 +291,6 @@ tools::Rectangle ScCheckListMenuControl::GetSubMenuParentRect() return mxMenu->get_row_area(*mxScratchIter); } -sal_Int32 ScCheckListMenuControl::ExecuteMenu(weld::Menu& rMenu) -{ - return rMenu.popup_at_rect(mxMenu.get(), GetSubMenuParentRect(), weld::Placement::End).toInt32(); -} - void ScCheckListMenuControl::launchSubMenu() { ScListSubMenuControl* pSubMenu = maOpenTimer.mpSubMenu; @@ -343,11 +338,6 @@ void ScCheckListMenuControl::endSubMenu(ScListSubMenuControl& rSubMenu) } } -void ScCheckListMenuControl::resizeToFitMenuItems() -{ - mxMenu->set_size_request(-1, mxMenu->get_preferred_size().Height() + 2); -} - void ScCheckListMenuControl::selectMenuItem(size_t nPos, bool bSubMenuTimer) { mxMenu->select(nPos == MENU_NOT_SELECTED ? -1 : nPos); diff --git a/sc/source/ui/inc/checklistmenu.hxx b/sc/source/ui/inc/checklistmenu.hxx index 961fddceac58..4ba29de52166 100644 --- a/sc/source/ui/inc/checklistmenu.hxx +++ b/sc/source/ui/inc/checklistmenu.hxx @@ -130,7 +130,6 @@ public: void addMenuItem(const OUString& rText, Action* pAction); void addSeparator(); ScListSubMenuControl* addSubMenuItem(const OUString& rText, bool bEnabled, bool bCheckList); - void resizeToFitMenuItems(); void selectMenuItem(size_t nPos, bool bSubMenuTimer); void queueLaunchSubMenu(size_t nPos, ScListSubMenuControl* pMenu); @@ -183,8 +182,6 @@ public: */ void terminateAllPopupMenus(); - sal_Int32 ExecuteMenu(weld::Menu& rMenu); - void endSubMenu(ScListSubMenuControl& rSubMenu); private: @@ -339,8 +336,6 @@ public: void clearMenuItems(); void resizeToFitMenuItems(); - void setSelectedMenuItem(size_t nPos); - ScViewData& GetViewData() const { return mrParentControl.GetViewData(); } ScCheckListMenuControl::ExtendedData* getExtendedData() { return mrParentControl.getExtendedData(); } VclPtr<VirtualDevice> create_virtual_device() const { return mxMenu->create_virtual_device(); } |