Kaydet (Commit) 76258ecb authored tarafından Caolán McNamara's avatar Caolán McNamara

SvxBitmapCtl::nLines is never read

Change-Id: Ib03eb766b1f45247204e64543dbf80c24f8608c7
üst 147d18ad
...@@ -263,9 +263,6 @@ bool SvxPatternTabPage::FillItemSet( SfxItemSet* _rOutAttrs ) ...@@ -263,9 +263,6 @@ bool SvxPatternTabPage::FillItemSet( SfxItemSet* _rOutAttrs )
void SvxPatternTabPage::Reset( const SfxItemSet* ) void SvxPatternTabPage::Reset( const SfxItemSet* )
{ {
// aLbBitmaps.SelectEntryPos( 0 );
m_pBitmapCtl->SetLines( m_pCtlPixel->GetLineCount() );
m_pBitmapCtl->SetPixelColor( m_pLbColor->GetSelectEntryColor() ); m_pBitmapCtl->SetPixelColor( m_pLbColor->GetSelectEntryColor() );
m_pBitmapCtl->SetBackgroundColor( m_pLbBackgroundColor->GetSelectEntryColor() ); m_pBitmapCtl->SetBackgroundColor( m_pLbBackgroundColor->GetSelectEntryColor() );
m_pBitmapCtl->SetBmpArray( m_pCtlPixel->GetBitmapPixelPtr() ); m_pBitmapCtl->SetBmpArray( m_pCtlPixel->GetBitmapPixelPtr() );
......
...@@ -148,7 +148,6 @@ public: ...@@ -148,7 +148,6 @@ public:
class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxBitmapCtl class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxBitmapCtl
{ {
protected: protected:
sal_uInt16 nLines;
Color aPixelColor, aBackgroundColor; Color aPixelColor, aBackgroundColor;
const sal_uInt16* pBmpArray; const sal_uInt16* pBmpArray;
...@@ -159,7 +158,6 @@ public: ...@@ -159,7 +158,6 @@ public:
BitmapEx GetBitmapEx(); BitmapEx GetBitmapEx();
void SetBmpArray( const sal_uInt16* pPixel ) { pBmpArray = pPixel; } void SetBmpArray( const sal_uInt16* pPixel ) { pBmpArray = pPixel; }
void SetLines( sal_uInt16 nLns ) { nLines = nLns; }
void SetPixelColor( Color aColor ) { aPixelColor = aColor; } void SetPixelColor( Color aColor ) { aPixelColor = aColor; }
void SetBackgroundColor( Color aColor ) { aBackgroundColor = aColor; } void SetBackgroundColor( Color aColor ) { aBackgroundColor = aColor; }
}; };
......
...@@ -1106,8 +1106,7 @@ void SvxPixelCtl::Reset() ...@@ -1106,8 +1106,7 @@ void SvxPixelCtl::Reset()
// Constructor: BitmapCtl for SvxPixelCtl // Constructor: BitmapCtl for SvxPixelCtl
SvxBitmapCtl::SvxBitmapCtl() SvxBitmapCtl::SvxBitmapCtl()
: nLines(0) : pBmpArray(nullptr)
, pBmpArray(nullptr)
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment