diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-03 16:18:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-04 08:36:50 +0200 |
commit | 2a1a96033967bac7a323772bc876e9e44d3464d3 (patch) | |
tree | 5f152a59b2df7e2c12ac0896f5699360cd91283b /sd | |
parent | fb0644e8f0a944c10b654233813ab40792e78e0a (diff) |
loplugin:unusedfields in sd
Change-Id: I42def3dc21ae1a18e1c98d1aeeff4ed4425e941a
Reviewed-on: https://gerrit.libreoffice.org/39479
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/epptbase.hxx | 1 | ||||
-rw-r--r-- | sd/source/filter/eppt/pptx-text.cxx | 2 | ||||
-rw-r--r-- | sd/source/filter/ppt/propread.cxx | 11 | ||||
-rw-r--r-- | sd/source/filter/ppt/propread.hxx | 3 | ||||
-rw-r--r-- | sd/source/ui/framework/factories/BasicPaneFactory.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsClipboard.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx | 6 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/inc/model/SlsVisualState.hxx | 12 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/inc/view/SlsTheme.hxx | 10 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/model/SlsPageDescriptor.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/model/SlsVisualState.cxx | 20 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/view/SlsTheme.cxx | 9 |
12 files changed, 4 insertions, 79 deletions
diff --git a/sd/source/filter/eppt/epptbase.hxx b/sd/source/filter/eppt/epptbase.hxx index 8213a6c4a560..b47d1a44fb4a 100644 --- a/sd/source/filter/eppt/epptbase.hxx +++ b/sd/source/filter/eppt/epptbase.hxx @@ -137,7 +137,6 @@ struct FontCollectionEntry sal_Int16 CharSet; OUString Original; - bool bIsConverted; FontCollectionEntry( const OUString& rName, sal_Int16 nFamily, sal_Int16 nPitch, sal_Int16 nCharSet ) : Scaling ( 1.0 ), diff --git a/sd/source/filter/eppt/pptx-text.cxx b/sd/source/filter/eppt/pptx-text.cxx index 0cdf747dce6e..ebe7a3593a56 100644 --- a/sd/source/filter/eppt/pptx-text.cxx +++ b/sd/source/filter/eppt/pptx-text.cxx @@ -1371,12 +1371,10 @@ void FontCollectionEntry::ImplInit( const OUString& rName ) if ( !aSubstName.isEmpty() ) { Name = aSubstName; - bIsConverted = true; } else { Name = rName; - bIsConverted = false; } } diff --git a/sd/source/filter/ppt/propread.cxx b/sd/source/filter/ppt/propread.cxx index e586cd95cc31..857912fdf8d5 100644 --- a/sd/source/filter/ppt/propread.cxx +++ b/sd/source/filter/ppt/propread.cxx @@ -536,10 +536,7 @@ Section& Section::operator=( const Section& rSection ) PropRead::PropRead( SotStorage& rStorage, const OUString& rName ) : mbStatus ( false ), - mnByteOrder ( 0xfffe ), - mnFormat ( 0 ), - mnVersionLo ( 4 ), - mnVersionHi ( 2 ) + mnByteOrder ( 0xfffe ) { if ( rStorage.IsStream( rName ) ) { @@ -570,6 +567,9 @@ void PropRead::Read() if ( mbStatus ) { + sal_uInt16 mnVersionLo; + sal_uInt16 mnVersionHi; + sal_uInt16 mnFormat; mpSvStream->ReadUInt16( mnByteOrder ).ReadUInt16( mnFormat ).ReadUInt16( mnVersionLo ).ReadUInt16( mnVersionHi ); if ( mnByteOrder == 0xfffe ) { @@ -605,9 +605,6 @@ PropRead& PropRead::operator=( const PropRead& rPropRead ) mpSvStream = rPropRead.mpSvStream; mnByteOrder = rPropRead.mnByteOrder; - mnFormat = rPropRead.mnFormat; - mnVersionLo = rPropRead.mnVersionLo; - mnVersionHi = rPropRead.mnVersionHi; memcpy( mApplicationCLSID, rPropRead.mApplicationCLSID, 16 ); for(const std::unique_ptr<Section>& rSection : rPropRead.maSections) diff --git a/sd/source/filter/ppt/propread.hxx b/sd/source/filter/ppt/propread.hxx index fc1e3f272791..f6db1331122c 100644 --- a/sd/source/filter/ppt/propread.hxx +++ b/sd/source/filter/ppt/propread.hxx @@ -139,9 +139,6 @@ class PropRead tools::SvRef<SotStorageStream> mpSvStream; sal_uInt16 mnByteOrder; - sal_uInt16 mnFormat; - sal_uInt16 mnVersionLo; - sal_uInt16 mnVersionHi; sal_uInt8 mApplicationCLSID[ 16 ]; std::vector<std::unique_ptr<Section> > maSections; diff --git a/sd/source/ui/framework/factories/BasicPaneFactory.cxx b/sd/source/ui/framework/factories/BasicPaneFactory.cxx index 7dd2f40b2af7..aea1f28b4811 100644 --- a/sd/source/ui/framework/factories/BasicPaneFactory.cxx +++ b/sd/source/ui/framework/factories/BasicPaneFactory.cxx @@ -71,7 +71,6 @@ public: flag is reset. */ bool mbIsReleased; - bool mbIsChildWindow; bool CompareURL(const OUString& rsPaneURL) const { return msPaneURL.equals(rsPaneURL); } bool ComparePane(const Reference<XResource>& rxPane) const { return mxPane == rxPane; } @@ -161,7 +160,6 @@ void SAL_CALL BasicPaneFactory::initialize (const Sequence<Any>& aArguments) aDescriptor.msPaneURL = FrameworkHelper::msCenterPaneURL; aDescriptor.mePaneId = CenterPaneId; aDescriptor.mbIsReleased = false; - aDescriptor.mbIsChildWindow = false; mpPaneContainer->push_back(aDescriptor); xCC->addResourceFactory(aDescriptor.msPaneURL, this); @@ -172,7 +170,6 @@ void SAL_CALL BasicPaneFactory::initialize (const Sequence<Any>& aArguments) aDescriptor.msPaneURL = FrameworkHelper::msLeftImpressPaneURL; aDescriptor.mePaneId = LeftImpressPaneId; - aDescriptor.mbIsChildWindow = true; mpPaneContainer->push_back(aDescriptor); xCC->addResourceFactory(aDescriptor.msPaneURL, this); diff --git a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx index 6a28fa1dbfbe..f98ea9761e27 100644 --- a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx +++ b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx @@ -145,7 +145,6 @@ Clipboard::Clipboard (SlideSorter& rSlideSorter) mrController(mrSlideSorter.GetController()), maPagesToRemove(), maPagesToSelect(), - mbUpdateSelectionPending(false), mxUndoContext(), mxSelectionObserverContext(), mnDragFinishedUserEventId(nullptr) @@ -577,7 +576,6 @@ void Clipboard::StartDrag ( { maPagesToRemove.clear(); maPagesToSelect.clear(); - mbUpdateSelectionPending = false; CreateSlideTransferable(pWindow, true); mrController.GetInsertionIndicatorHandler()->UpdatePosition( @@ -851,8 +849,6 @@ sal_uInt16 Clipboard::InsertSlides ( maPagesToSelect.push_back( dynamic_cast<SdPage*>(pDocument->GetPage(nInsertPosition+i))); - mbUpdateSelectionPending |= (nInsertedPageCount>0); - return nInsertedPageCount; } diff --git a/sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx b/sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx index 03d981e3c957..f20133a137c6 100644 --- a/sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx +++ b/sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx @@ -128,12 +128,6 @@ private: */ PageList maPagesToSelect; - /** When pages are moved or copied then the selection of the slide - sorter has to be updated. This flag is used to remember whether the - selection has to be updated or can stay as it is (sal_False). - */ - bool mbUpdateSelectionPending; - /** Used when a drop is executed to combine all undo actions into one. Typically created in ExecuteDrop() and released in DragFinish(). */ diff --git a/sd/source/ui/slidesorter/inc/model/SlsVisualState.hxx b/sd/source/ui/slidesorter/inc/model/SlsVisualState.hxx index 35e3b179f75d..cfc08548482b 100644 --- a/sd/source/ui/slidesorter/inc/model/SlsVisualState.hxx +++ b/sd/source/ui/slidesorter/inc/model/SlsVisualState.hxx @@ -34,27 +34,15 @@ class PageDescriptor; class VisualState { public: - enum State { - VS_Selected, - VS_Focused, - VS_Current, - VS_Excluded, - VS_None }; - VisualState (const sal_Int32 nPageId); ~VisualState(); - void SetVisualState (const State eState); - - void UpdateVisualState (const PageDescriptor& rDescriptor); - const Point& GetLocationOffset() const { return maLocationOffset;} void SetLocationOffset (const Point& rPoint); sal_Int32 mnPageId; // For debugging private: - State meCurrentVisualState; Point maLocationOffset; }; diff --git a/sd/source/ui/slidesorter/inc/view/SlsTheme.hxx b/sd/source/ui/slidesorter/inc/view/SlsTheme.hxx index 46bb252761b5..1decf772f8c3 100644 --- a/sd/source/ui/slidesorter/inc/view/SlsTheme.hxx +++ b/sd/source/ui/slidesorter/inc/view/SlsTheme.hxx @@ -118,20 +118,10 @@ private: class GradientDescriptor { public: - ColorData maBaseColor; - - sal_Int32 mnSaturationOverride; - sal_Int32 mnBrightnessOverride; - ColorData maFillColor1; ColorData maFillColor2; ColorData maBorderColor1; ColorData maBorderColor2; - - sal_Int32 mnFillOffset1; - sal_Int32 mnFillOffset2; - sal_Int32 mnBorderOffset1; - sal_Int32 mnBorderOffset2; }; ColorData maBackgroundColor; ::std::vector<GradientDescriptor> maGradients; diff --git a/sd/source/ui/slidesorter/model/SlsPageDescriptor.cxx b/sd/source/ui/slidesorter/model/SlsPageDescriptor.cxx index 0737d00cada6..1e173b023ba2 100644 --- a/sd/source/ui/slidesorter/model/SlsPageDescriptor.cxx +++ b/sd/source/ui/slidesorter/model/SlsPageDescriptor.cxx @@ -183,8 +183,6 @@ bool PageDescriptor::SetState (const State eState, const bool bNewStateValue) break; } - if (bModified) - maVisualState.UpdateVisualState(*this); return bModified; } diff --git a/sd/source/ui/slidesorter/model/SlsVisualState.cxx b/sd/source/ui/slidesorter/model/SlsVisualState.cxx index ad62e9e2904f..0ec4569af4d9 100644 --- a/sd/source/ui/slidesorter/model/SlsVisualState.cxx +++ b/sd/source/ui/slidesorter/model/SlsVisualState.cxx @@ -25,7 +25,6 @@ namespace sd { namespace slidesorter { namespace model { VisualState::VisualState (const sal_Int32 nPageId) : mnPageId(nPageId), - meCurrentVisualState(VS_None), maLocationOffset(0,0) { } @@ -34,25 +33,6 @@ VisualState::~VisualState() { } -void VisualState::SetVisualState (const State eState) -{ - meCurrentVisualState = eState; -} - -void VisualState::UpdateVisualState (const PageDescriptor& rDescriptor) -{ - if (rDescriptor.HasState(PageDescriptor::ST_Excluded)) - SetVisualState(VS_Excluded); - else if (rDescriptor.HasState(PageDescriptor::ST_Current)) - SetVisualState(VS_Current); - else if (rDescriptor.HasState(PageDescriptor::ST_Focused)) - SetVisualState(VS_Focused); - else if (rDescriptor.HasState(PageDescriptor::ST_Selected)) - SetVisualState(VS_Selected); - else - SetVisualState(VS_None); -} - void VisualState::SetLocationOffset (const Point& rOffset) { if (maLocationOffset != rOffset) diff --git a/sd/source/ui/slidesorter/view/SlsTheme.cxx b/sd/source/ui/slidesorter/view/SlsTheme.cxx index 715f28a40f75..a22a14de1afa 100644 --- a/sd/source/ui/slidesorter/view/SlsTheme.cxx +++ b/sd/source/ui/slidesorter/view/SlsTheme.cxx @@ -196,10 +196,6 @@ void Theme::SetGradient ( { GradientDescriptor& rGradient (GetGradient(eType)); - rGradient.maBaseColor = aBaseColor; - - rGradient.mnSaturationOverride = nSaturationOverride; - rGradient.mnBrightnessOverride = nBrightnessOverride; const ColorData aColor (nSaturationOverride>=0 || nBrightnessOverride>=0 ? HGBAdapt(aBaseColor, nSaturationOverride, nBrightnessOverride) : aBaseColor); @@ -208,11 +204,6 @@ void Theme::SetGradient ( rGradient.maFillColor2 = ChangeLuminance(aColor, nFillEndOffset); rGradient.maBorderColor1 = ChangeLuminance(aColor, nBorderStartOffset); rGradient.maBorderColor2 = ChangeLuminance(aColor, nBorderEndOffset); - - rGradient.mnFillOffset1 = nFillStartOffset; - rGradient.mnFillOffset2 = nFillEndOffset; - rGradient.mnBorderOffset1 = nBorderStartOffset; - rGradient.mnBorderOffset2 = nBorderEndOffset; } const BitmapEx& Theme::GetIcon (const IconType eType) |