summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-22 08:56:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-23 10:12:04 +0200
commit3b65ce7996c8cedcdb710275a0d1fb948b5d78bb (patch)
tree28dd1d63d79ebf7249f9a1f13fd24219fc5197b9 /sfx2
parent4c1f44047aa680c2e2e84986353ab2b2f375f6f2 (diff)
loplugin:unusedmethods
Change-Id: I5fd081780d46fd30864830eea2956bad6dc3e222 Reviewed-on: https://gerrit.libreoffice.org/81360 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/sidebar/ControllerItem.cxx17
1 files changed, 0 insertions, 17 deletions
diff --git a/sfx2/source/sidebar/ControllerItem.cxx b/sfx2/source/sidebar/ControllerItem.cxx
index dc44975a1ac8..088677115893 100644
--- a/sfx2/source/sidebar/ControllerItem.cxx
+++ b/sfx2/source/sidebar/ControllerItem.cxx
@@ -67,23 +67,6 @@ void ControllerItem::StateChanged (
mrItemUpdateReceiver.NotifyItemUpdate(nSID, eState, pState);
}
-bool ControllerItem::IsEnabled (SfxItemState eState)
-{
- if (eState == SfxItemState::DISABLED)
- return false;
- else if ( ! SvtCommandOptions().HasEntries(SvtCommandOptions::CMDOPTION_DISABLED))
- {
- // There are no disabled commands.
- return true;
- }
- else
- {
- // We were not given a command name at construction and can
- // not check the state now. Assume the best and return true.
- return true;
- }
-}
-
void ControllerItem::RequestUpdate()
{
std::unique_ptr<SfxPoolItem> pState;