diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-21 13:13:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-22 14:07:49 +0200 |
commit | 2b4cb88c029cc085e06effb32a2631033ccd8a50 (patch) | |
tree | 26c84dc341b233bb94c90d0fbc01788ed62a0bfa /chart2/source | |
parent | 939f9bd0b502ab5dc240be0c6f334becb1c944c8 (diff) |
loplugin:unusedfields in basctl..connectivity
Change-Id: I2f10daadb84e48eaf96f6cc63899b2f4fce7326e
Reviewed-on: https://gerrit.libreoffice.org/40295
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/view/charttypes/BubbleChart.cxx | 8 | ||||
-rw-r--r-- | chart2/source/view/charttypes/BubbleChart.hxx | 1 |
2 files changed, 1 insertions, 8 deletions
diff --git a/chart2/source/view/charttypes/BubbleChart.cxx b/chart2/source/view/charttypes/BubbleChart.cxx index e78738a0e85e..19c278fff217 100644 --- a/chart2/source/view/charttypes/BubbleChart.cxx +++ b/chart2/source/view/charttypes/BubbleChart.cxx @@ -46,7 +46,6 @@ using namespace ::com::sun::star::chart2; BubbleChart::BubbleChart( const uno::Reference<XChartType>& xChartTypeModel , sal_Int32 nDimensionCount ) : VSeriesPlotter( xChartTypeModel, nDimensionCount, false ) - , m_bShowNegativeValues(false) , m_fBubbleSizeScaling(1.0) , m_fMaxLogicBubbleSize( 0.0 ) , m_fBubbleSizeFactorToScreen( 1.0 ) @@ -89,8 +88,6 @@ void BubbleChart::calculateMaximumLogicBubbleSize() continue; double fSize = pSeries->getBubble_Size( nIndex ); - if( m_bShowNegativeValues ) - fSize = fabs(fSize); if( fSize > fMaxSize ) fMaxSize = fSize; } @@ -124,9 +121,6 @@ drawing::Direction3D BubbleChart::transformToScreenBubbleSize( double fLogicSize if( ::rtl::math::isNan(fLogicSize) || ::rtl::math::isInf(fLogicSize) ) return aRet; - if( m_bShowNegativeValues ) - fLogicSize = fabs(fLogicSize); - double fMaxSize = m_fMaxLogicBubbleSize; double fMaxRadius = sqrt( fMaxSize / F_PI ); @@ -251,7 +245,7 @@ void BubbleChart::createShapes() double fLogicY = pSeries->getYValue(nIndex); double fBubbleSize = pSeries->getBubble_Size( nIndex ); - if( !m_bShowNegativeValues && fBubbleSize<0.0 ) + if( fBubbleSize<0.0 ) continue; if( fBubbleSize == 0.0 || ::rtl::math::isNan(fBubbleSize) ) diff --git a/chart2/source/view/charttypes/BubbleChart.hxx b/chart2/source/view/charttypes/BubbleChart.hxx index 6958e54d87ff..80cf1a4be282 100644 --- a/chart2/source/view/charttypes/BubbleChart.hxx +++ b/chart2/source/view/charttypes/BubbleChart.hxx @@ -53,7 +53,6 @@ private: //methods private: //member - bool m_bShowNegativeValues;//input parameter double m_fBubbleSizeScaling;//input parameter double m_fMaxLogicBubbleSize;//calculated values |