summaryrefslogtreecommitdiffstats
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-25 11:03:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-25 12:03:50 +0200
commit2fffaf6f05d829e345ad8b391646a6e8df9a9a26 (patch)
treeec1b7343262433ee2ea9ab6e5197b6fd2327b685 /chart2
parentuse more comphelper::InitAnyPropertySequence (diff)
downloadcore-2fffaf6f05d829e345ad8b391646a6e8df9a9a26.tar.gz
core-2fffaf6f05d829e345ad8b391646a6e8df9a9a26.zip
loplugin:unusedmethods
Change-Id: Ia874baf21257e5fe41e104211068a2bcc50446eb Reviewed-on: https://gerrit.libreoffice.org/40391 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/inc/DataSeriesHelper.hxx4
-rw-r--r--chart2/source/tools/DataSeriesHelper.cxx38
2 files changed, 0 insertions, 42 deletions
diff --git a/chart2/source/inc/DataSeriesHelper.hxx b/chart2/source/inc/DataSeriesHelper.hxx
index b031d4a54ae8..3c6f369020ee 100644
--- a/chart2/source/inc/DataSeriesHelper.hxx
+++ b/chart2/source/inc/DataSeriesHelper.hxx
@@ -150,10 +150,6 @@ OOO_DLLPUBLIC_CHARTTOOLS bool hasAttributedDataPointDifferentValue(
const OUString& rPropertyName,
const css::uno::Any& rPropertyValue );
-OOO_DLLPUBLIC_CHARTTOOLS bool areAllSeriesAttachedToSameAxis(
- const css::uno::Reference< css::chart2::XChartType >& xChartType,
- sal_Int32 & rOutAxisIndex );
-
OOO_DLLPUBLIC_CHARTTOOLS bool hasUnhiddenData( const css::uno::Reference<
css::chart2::XDataSeries >& xSeries );
diff --git a/chart2/source/tools/DataSeriesHelper.cxx b/chart2/source/tools/DataSeriesHelper.cxx
index 97de8cde4f7b..657572f069eb 100644
--- a/chart2/source/tools/DataSeriesHelper.cxx
+++ b/chart2/source/tools/DataSeriesHelper.cxx
@@ -633,44 +633,6 @@ bool hasAttributedDataPointDifferentValue( const Reference< chart2::XDataSeries
return false;
}
-bool areAllSeriesAttachedToSameAxis( const uno::Reference< chart2::XChartType >& xChartType, sal_Int32 & rOutAxisIndex )
-{
- try
- {
- uno::Reference< chart2::XDataSeriesContainer > xDataSeriesContainer( xChartType, uno::UNO_QUERY_THROW );
- uno::Sequence< uno::Reference< chart2::XDataSeries > > aSeriesSeq( xDataSeriesContainer->getDataSeries());
-
- const sal_Int32 nSeriesCount( aSeriesSeq.getLength());
- // AxisIndex can only be 0 or 1
- sal_Int32 nSeriesAtFirstAxis = 0;
- sal_Int32 nSeriesAtSecondAxis = 0;
-
- for( sal_Int32 nI = 0; nI < nSeriesCount; ++nI )
- {
- uno::Reference< chart2::XDataSeries > xSeries( aSeriesSeq[nI], uno::UNO_QUERY );
- sal_Int32 nAxisIndex = DataSeriesHelper::getAttachedAxisIndex( xSeries );
- if( nAxisIndex == 0 )
- ++nSeriesAtFirstAxis;
- else if( nAxisIndex == 1 )
- ++nSeriesAtSecondAxis;
- }
- OSL_ENSURE( nSeriesAtFirstAxis + nSeriesAtSecondAxis == nSeriesCount, "Invalid axis index found" );
-
- if( nSeriesAtFirstAxis == nSeriesCount )
- rOutAxisIndex = 0;
- else if( nSeriesAtSecondAxis == nSeriesCount )
- rOutAxisIndex = 1;
-
- return ( nSeriesAtFirstAxis == nSeriesCount ||
- nSeriesAtSecondAxis == nSeriesCount );
- }
- catch( const uno::Exception & ex )
- {
- ASSERT_EXCEPTION( ex );
- return false;
- }
-}
-
namespace
{