diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 12:30:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 16:26:43 +0000 |
commit | a3f0803059cd22ddf8590db992183008dedd0fdb (patch) | |
tree | b4a8fe8b2c3b0a71d27f407140d7408f8fc9c409 /svtools | |
parent | 42e749429d6f01863d5af1e42fce583494e41212 (diff) |
coverity#704317 Logically dead code
Change-Id: I680efdff5be6a9f699b8954c11eddc027f972a76
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/toolbarmenu.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/svtools/source/control/toolbarmenu.cxx b/svtools/source/control/toolbarmenu.cxx index 5f91e2e45809..9efa51867f6e 100644 --- a/svtools/source/control/toolbarmenu.cxx +++ b/svtools/source/control/toolbarmenu.cxx @@ -639,7 +639,6 @@ Size ToolbarMenu::implCalcSize() Size aMaxImgSz; long nMaxTextWidth = 0; long nMinMenuItemHeight = nFontHeight+2; - sal_Bool bCheckable = sal_False; const int nEntryCount = mpImpl->maEntryVector.size(); int nEntry; @@ -668,8 +667,6 @@ Size ToolbarMenu::implCalcSize() if ( aMaxImgSz.Width() ) mpImpl->mnTextPos += std::max( nExtra, 7L ); - if ( bCheckable ) - mpImpl->mnTextPos += 16; // set heights, calc maximum width for( nEntry = 0; nEntry < nEntryCount; nEntry++ ) @@ -678,9 +675,6 @@ Size ToolbarMenu::implCalcSize() if( pEntry ) { - if ( ( pEntry->mnBits ) & ( MIB_RADIOCHECK | MIB_CHECKABLE ) ) - bCheckable = sal_True; - // Text: if( pEntry->mbHasText || pEntry->mbHasImage ) { |