diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-09 10:06:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-09 10:44:22 +0100 |
commit | fb4b9fe3d86baaaae6c6980cfa2cf723c41614be (patch) | |
tree | ce6e8437da2942b68dc6c9a9de6c5097a982c703 /sd/source/ui/docshell/docshell.cxx | |
parent | 38d73f23fd519d87ce74405fe1d851ef0796f777 (diff) |
coverity#735483 Logically dead code
Change-Id: I4cb153338f1a00d9439dcfa9c43ee96235584e4a
Diffstat (limited to 'sd/source/ui/docshell/docshell.cxx')
-rw-r--r-- | sd/source/ui/docshell/docshell.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sd/source/ui/docshell/docshell.cxx b/sd/source/ui/docshell/docshell.cxx index 5750387505cd..75665fa8763d 100644 --- a/sd/source/ui/docshell/docshell.cxx +++ b/sd/source/ui/docshell/docshell.cxx @@ -224,17 +224,7 @@ void DrawDocShell::GetState(SfxItemSet &rSet) break; case SID_CLOSEDOC: - { - bool bDisabled = false; - if (bDisabled) - { - rSet.DisableItem(SID_CLOSEDOC); - } - else - { - GetSlotState(SID_CLOSEDOC, SfxObjectShell::GetInterface(), &rSet); - } - } + GetSlotState(SID_CLOSEDOC, SfxObjectShell::GetInterface(), &rSet); break; case SID_SEARCH_OPTIONS: |