diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-21 09:26:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-12-21 09:30:20 +0000 |
commit | c1c3ef64bca25183979f666aef51ab2854d628d8 (patch) | |
tree | 03a9e9518dcb9bb80833e79400b98dcbc80bfad3 /oox | |
parent | 725f7d0171985ff858af2436c553b4906bd060f6 (diff) |
callcatcher: remove some unused code
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/SchXMLSeriesHelper.cxx | 35 | ||||
-rw-r--r-- | oox/source/export/SchXMLSeriesHelper.hxx | 5 |
2 files changed, 0 insertions, 40 deletions
diff --git a/oox/source/export/SchXMLSeriesHelper.cxx b/oox/source/export/SchXMLSeriesHelper.cxx index fc6ee8b1b67f..e233b8a2a89a 100644 --- a/oox/source/export/SchXMLSeriesHelper.cxx +++ b/oox/source/export/SchXMLSeriesHelper.cxx @@ -187,41 +187,6 @@ bool SchXMLSeriesHelper::isCandleStickSeries( return bRet; } -// static -Reference< chart2::XDataSeries > SchXMLSeriesHelper::getFirstCandleStickSeries( - const Reference< chart2::XDiagram > & xDiagram ) -{ - Reference< chart2::XDataSeries > xResult; - - try - { - Reference< chart2::XCoordinateSystemContainer > xCooSysCnt( xDiagram, uno::UNO_QUERY_THROW ); - Sequence< Reference< chart2::XCoordinateSystem > > aCooSysSeq( xCooSysCnt->getCoordinateSystems()); - for( sal_Int32 nCooSysIdx=0; !xResult.is() && nCooSysIdx<aCooSysSeq.getLength(); ++nCooSysIdx ) - { - Reference< chart2::XChartTypeContainer > xCTCnt( aCooSysSeq[nCooSysIdx], uno::UNO_QUERY_THROW ); - Sequence< Reference< chart2::XChartType > > aCTSeq( xCTCnt->getChartTypes()); - for( sal_Int32 nCTIdx=0; !xResult.is() && nCTIdx<aCTSeq.getLength(); ++nCTIdx ) - { - if( aCTSeq[nCTIdx]->getChartType().equals( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.chart2.CandleStickChartType")))) - { - Reference< chart2::XDataSeriesContainer > xSeriesCnt( aCTSeq[nCTIdx], uno::UNO_QUERY_THROW ); - Sequence< Reference< chart2::XDataSeries > > aSeriesSeq( xSeriesCnt->getDataSeries() ); - if( aSeriesSeq.getLength()) - xResult.set( aSeriesSeq[0] ); - break; - } - } - } - } - catch( const uno::Exception & ) - { - OSL_FAIL( "Exception caught" ); - } - return xResult; -} - //static uno::Reference< beans::XPropertySet > SchXMLSeriesHelper::createOldAPISeriesPropertySet( const uno::Reference< chart2::XDataSeries >& xSeries diff --git a/oox/source/export/SchXMLSeriesHelper.hxx b/oox/source/export/SchXMLSeriesHelper.hxx index 1fdabba3aa9b..e19160157fd1 100644 --- a/oox/source/export/SchXMLSeriesHelper.hxx +++ b/oox/source/export/SchXMLSeriesHelper.hxx @@ -57,11 +57,6 @@ public: ::com::sun::star::frame::XModel >& xChartModel ); static ::com::sun::star::uno::Reference< - ::com::sun::star::chart2::XDataSeries > getFirstCandleStickSeries( - const ::com::sun::star::uno::Reference< - ::com::sun::star::chart2::XDiagram > & xDiagram ); - - static ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > createOldAPISeriesPropertySet( const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDataSeries >& xSeries |