diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-15 19:34:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-16 09:21:20 +0200 |
commit | 27a97ce6f9df24582e07c9f5f920c79ab0851abd (patch) | |
tree | 3c7952fea62912362add7b2023424c6168251dbb /sw/source | |
parent | ec8dc357e68e20fa00a7d37f8c3195f571fb1fa6 (diff) |
loplugin:unusedfields
Change-Id: If0e362cf5b403be63439ec694f3a0e440dfd9bc8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94327
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/inc/swfont.hxx | 7 | ||||
-rw-r--r-- | sw/source/core/text/atrstck.cxx | 3 | ||||
-rw-r--r-- | sw/source/core/txtnode/swfont.cxx | 7 |
3 files changed, 0 insertions, 17 deletions
diff --git a/sw/source/core/inc/swfont.hxx b/sw/source/core/inc/swfont.hxx index 4da9f8c1a8f5..b9e367602789 100644 --- a/sw/source/core/inc/swfont.hxx +++ b/sw/source/core/inc/swfont.hxx @@ -163,7 +163,6 @@ class SwFont SwFontScript m_nActual; // actual font (Latin, CJK or CTL) // switch for the font-extensions - bool m_bBlink :1; // blinking font bool m_bPaintBlank :1; // blanks not with DrawRect bool m_bFontChg :1; bool m_bOrgChg :1; // nOrgHeight/Ascent are invalid @@ -245,7 +244,6 @@ public: inline void SetRelief( const FontRelief eNew ); // Get/Set-methods for the current setting - inline void SetBlink( const bool bBlink ); sal_uInt8 &GetTox() { return m_nToxCount; } bool IsTox() const { return ( 0 != m_nToxCount ); } sal_uInt8 &GetRef() { return m_nRefCount; } @@ -814,11 +812,6 @@ inline void SwFont::SetLanguage( const LanguageType eNewLang, const SwFontScript } } -inline void SwFont::SetBlink( const bool bNew ) -{ - m_bBlink = bNew; -} - inline void SwFont::SetGreyWave( const bool bNew ) { m_bGreyWave = bNew; diff --git a/sw/source/core/text/atrstck.cxx b/sw/source/core/text/atrstck.cxx index 2169657f8ed5..aa1b9f67e728 100644 --- a/sw/source/core/text/atrstck.cxx +++ b/sw/source/core/text/atrstck.cxx @@ -668,9 +668,6 @@ void SwAttrHandler::FontChg(const SfxPoolItem& rItem, SwFont& rFnt, bool bPush ) else rFnt.SetAutoKern( FontKerning::NONE ); break; - case RES_CHRATR_BLINK : - rFnt.SetBlink( static_cast<const SvxBlinkItem&>(rItem).GetValue() ); - break; case RES_CHRATR_BACKGROUND : rFnt.SetBackColor(new Color( static_cast<const SvxBrushItem&>(rItem).GetColor() ) ); break; diff --git a/sw/source/core/txtnode/swfont.cxx b/sw/source/core/txtnode/swfont.cxx index 97699a7a09f4..60d22422cd07 100644 --- a/sw/source/core/txtnode/swfont.cxx +++ b/sw/source/core/txtnode/swfont.cxx @@ -662,9 +662,6 @@ void SwFont::SetDiffFnt( const SfxItemSet *pAttrSet, if( SfxItemState::SET == pAttrSet->GetItemState( RES_CHRATR_KERNING, true, &pItem )) SetFixKerning( static_cast<const SvxKerningItem*>(pItem)->GetValue() ); - if( SfxItemState::SET == pAttrSet->GetItemState( RES_CHRATR_BLINK, - true, &pItem )) - SetBlink( static_cast<const SvxBlinkItem*>(pItem)->GetValue() ); if( SfxItemState::SET == pAttrSet->GetItemState( RES_CHRATR_ROTATE, true, &pItem )) SetVertical( static_cast<const SvxCharRotateItem*>(pItem)->GetValue() ); @@ -704,7 +701,6 @@ void SwFont::SetDiffFnt( const SfxItemSet *pAttrSet, else { Invalidate(); - m_bBlink = false; } m_bPaintBlank = false; OSL_ENSURE( m_aSub[SwFontScript::Latin].IsTransparent(), "SwFont: Transparent revolution" ); @@ -737,7 +733,6 @@ SwFont::SwFont( const SwFont &rFont ) m_bOrgChg = rFont.m_bOrgChg; m_bPaintBlank = rFont.m_bPaintBlank; m_bGreyWave = rFont.m_bGreyWave; - m_bBlink = rFont.m_bBlink; } SwFont::SwFont( const SwAttrSet* pAttrSet, @@ -751,7 +746,6 @@ SwFont::SwFont( const SwAttrSet* pAttrSet, m_nInputFieldCount = 0; m_bPaintBlank = false; m_bGreyWave = false; - m_bBlink = pAttrSet->GetBlink().GetValue(); m_bOrgChg = true; { const SvxFontItem& rFont = pAttrSet->GetFont(); @@ -933,7 +927,6 @@ SwFont& SwFont::operator=( const SwFont &rFont ) m_bOrgChg = rFont.m_bOrgChg; m_bPaintBlank = rFont.m_bPaintBlank; m_bGreyWave = rFont.m_bGreyWave; - m_bBlink = rFont.m_bBlink; } return *this; } |