summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-09 10:05:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-09 10:44:22 +0100
commite90df54a0594639388c57ce52a61398acf2a9ff1 (patch)
tree0f3ec24de140ab7f6b21836813b2f7427a3bd4e2 /sd
parent9f71d9f696609d9f1c5863f3b118afaa21cd4d57 (diff)
coverity#735486 Logically dead code
Change-Id: I8cedb071d345e111d5addf63a83d1f597698d43e
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/table/tableobjectbar.cxx11
1 files changed, 0 insertions, 11 deletions
diff --git a/sd/source/ui/table/tableobjectbar.cxx b/sd/source/ui/table/tableobjectbar.cxx
index 88f6670a8ebe..1b71192911dd 100644
--- a/sd/source/ui/table/tableobjectbar.cxx
+++ b/sd/source/ui/table/tableobjectbar.cxx
@@ -109,17 +109,8 @@ TableObjectBar::~TableObjectBar()
SetRepeatTarget( NULL );
}
-
-
void TableObjectBar::GetState( SfxItemSet& rSet )
{
- bool bReadOnly = false;
-
- if( bReadOnly )
- {
- rSet.DisableItem (SID_INSERT_TABLE );
- }
-
if( mpView )
{
rtl::Reference< sdr::SelectionController > xController( mpView->getSelectionController() );
@@ -130,8 +121,6 @@ void TableObjectBar::GetState( SfxItemSet& rSet )
}
}
-
-
void TableObjectBar::GetAttrState( SfxItemSet& rSet )
{
DrawViewShell* pDrawViewShell = dynamic_cast< DrawViewShell* >( mpViewSh );