summaryrefslogtreecommitdiff
path: root/chart2/source/tools/DiagramHelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-03-16 08:51:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-03-19 12:55:30 +0000
commitfd299d209d82495eb6528fb444e0b68f41c8ae0d (patch)
tree1f68b26f956e4b43419e76183a4fcf4cae9cb538 /chart2/source/tools/DiagramHelper.cxx
parent48b1fdf31f2fd4e9de47bda40e58cde7be9bc94d (diff)
move getDataSeries inside chart2::Diagram
Change-Id: Ie60d288dba9c8d006de03c80d3cfc7bf8f108782 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149085 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/tools/DiagramHelper.cxx')
-rw-r--r--chart2/source/tools/DiagramHelper.cxx27
1 files changed, 0 insertions, 27 deletions
diff --git a/chart2/source/tools/DiagramHelper.cxx b/chart2/source/tools/DiagramHelper.cxx
index 4dc6c40c184c..60f1376b2f25 100644
--- a/chart2/source/tools/DiagramHelper.cxx
+++ b/chart2/source/tools/DiagramHelper.cxx
@@ -596,33 +596,6 @@ rtl::Reference< ChartType > DiagramHelper::getChartTypeOfSeries(
return nullptr;
}
-std::vector< rtl::Reference< ::chart::DataSeries > >
- DiagramHelper::getDataSeriesFromDiagram(
- const rtl::Reference< Diagram > & xDiagram )
-{
- std::vector< rtl::Reference< DataSeries > > aResult;
- if (!xDiagram)
- return aResult;
-
- try
- {
- for( rtl::Reference< BaseCoordinateSystem > const & coords : xDiagram->getBaseCoordinateSystems() )
- {
- for( rtl::Reference< ChartType> const & chartType : coords->getChartTypes2() )
- {
- const std::vector< rtl::Reference< DataSeries > > aSeriesSeq( chartType->getDataSeries2() );
- aResult.insert( aResult.end(), aSeriesSeq.begin(), aSeriesSeq.end() );
- }
- }
- }
- catch( const uno::Exception & )
- {
- DBG_UNHANDLED_EXCEPTION("chart2");
- }
-
- return aResult;
-}
-
static void lcl_generateAutomaticCategoriesFromChartType(
Sequence< OUString >& rRet,
const rtl::Reference< ChartType >& xChartType )