From 096168cacc574a71482520e5c3fbd79f975dc6ad Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 28 Jul 2019 09:19:57 +0200 Subject: loplugin:writeonlyvars Change-Id: I00b495685cc9f74440051eafa2f8681a050a536e Reviewed-on: https://gerrit.libreoffice.org/76497 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/dlg/BulletAndPositionDlg.cxx | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/dlg/BulletAndPositionDlg.cxx b/sd/source/ui/dlg/BulletAndPositionDlg.cxx index 265274c1ff4d..dd811411d493 100644 --- a/sd/source/ui/dlg/BulletAndPositionDlg.cxx +++ b/sd/source/ui/dlg/BulletAndPositionDlg.cxx @@ -448,9 +448,6 @@ void SvxBulletAndPositionDlg::InitControls() bool bSameStart = true; bool bSamePrefix = true; bool bSameSuffix = true; - bool bAllLevel = true; - bool bSameCharFmt = true; - bool bSameVOrient = true; bool bSameSize = true; bool bSameBulColor = true; bool bSameBulRelSize = true; @@ -460,13 +457,10 @@ void SvxBulletAndPositionDlg::InitControls() const SvxNumberFormat* aNumFmtArr[SVX_MAX_NUM]; OUString sFirstCharFmt; - sal_Int16 eFirstOrient = text::VertOrientation::NONE; SvxAdjust eFirstAdjust = SvxAdjust::Left; Size aFirstSize(0, 0); sal_uInt16 nMask = 1; sal_uInt16 nLvl = SAL_MAX_UINT16; - sal_uInt16 nHighestLevel = 0; - (void)nHighestLevel; bool bBullColor = pActNum->IsFeatureSupported(SvxNumRuleFlags::BULLET_COLOR); bool bBullRelSize = pActNum->IsFeatureSupported(SvxNumRuleFlags::BULLET_REL_SIZE); @@ -483,7 +477,6 @@ void SvxBulletAndPositionDlg::InitControls() { nLvl = i; sFirstCharFmt = aNumFmtArr[i]->GetCharFormatName(); - eFirstOrient = aNumFmtArr[i]->GetVertOrient(); if (bShowBitmap) aFirstSize = aNumFmtArr[i]->GetGraphicSize(); } @@ -495,10 +488,6 @@ void SvxBulletAndPositionDlg::InitControls() bSamePrefix = aNumFmtArr[i]->GetPrefix() == aNumFmtArr[nLvl]->GetPrefix(); bSameSuffix = aNumFmtArr[i]->GetSuffix() == aNumFmtArr[nLvl]->GetSuffix(); - bAllLevel &= aNumFmtArr[i]->GetIncludeUpperLevels() - == aNumFmtArr[nLvl]->GetIncludeUpperLevels(); - bSameCharFmt &= sFirstCharFmt == aNumFmtArr[i]->GetCharFormatName(); - bSameVOrient &= eFirstOrient == aNumFmtArr[i]->GetVertOrient(); //bSameAdjust &= eFirstAdjust == aNumFmtArr[i]->GetNumAdjust(); if (bShowBitmap && bSameSize) bSameSize &= aNumFmtArr[i]->GetGraphicSize() == aFirstSize; @@ -510,7 +499,6 @@ void SvxBulletAndPositionDlg::InitControls() &= aNumFmtArr[i]->GetFirstLineOffset() == aNumFmtArr[nLvl]->GetFirstLineOffset(); } - nHighestLevel = i; } nMask <<= 1; @@ -523,7 +511,6 @@ void SvxBulletAndPositionDlg::InitControls() else { nNumberingType = SVX_NUM_NUMBER_NONE; - bAllLevel = false; bSameDistBorderNum = false; bSameIndent = false; bSameBulRelSize = false; -- cgit