summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/ControllerItem.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/sidebar/ControllerItem.cxx')
-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;