summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-12-21 09:26:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-12-21 09:30:20 +0000
commitc1c3ef64bca25183979f666aef51ab2854d628d8 (patch)
tree03a9e9518dcb9bb80833e79400b98dcbc80bfad3 /xmloff
parent725f7d0171985ff858af2436c553b4906bd060f6 (diff)
callcatcher: remove some unused code
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/SchXMLSeriesHelper.cxx35
-rw-r--r--xmloff/source/chart/SchXMLSeriesHelper.hxx5
2 files changed, 0 insertions, 40 deletions
diff --git a/xmloff/source/chart/SchXMLSeriesHelper.cxx b/xmloff/source/chart/SchXMLSeriesHelper.cxx
index 0ec80246c952..4ad0ef72576b 100644
--- a/xmloff/source/chart/SchXMLSeriesHelper.cxx
+++ b/xmloff/source/chart/SchXMLSeriesHelper.cxx
@@ -188,41 +188,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/xmloff/source/chart/SchXMLSeriesHelper.hxx b/xmloff/source/chart/SchXMLSeriesHelper.hxx
index b5fc1ad91821..90fa620cb4ef 100644
--- a/xmloff/source/chart/SchXMLSeriesHelper.hxx
+++ b/xmloff/source/chart/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