[Libreoffice-commits] core.git: chart2/source

Stephan Bergmann sbergman at redhat.com
Thu Nov 28 08:58:24 PST 2013


 chart2/source/model/template/BubbleChartTypeTemplate.cxx |   48 ---------------
 chart2/source/model/template/BubbleChartTypeTemplate.hxx |    5 -
 2 files changed, 53 deletions(-)

New commits:
commit 3c10c9ec665a218ff331994ea3fa35cf2f4cd60e
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Nov 28 17:56:27 2013 +0100

    Remove code that never effectively did anything
    
    ... since inception in 44569a657c4282757443ae06efc6441e571a0409 "CWS-TOOLING:
    integrate CWS bubblechart."
    
    Change-Id: I1785ef41bf7146ea7f4d8927165c38317d7183e8

diff --git a/chart2/source/model/template/BubbleChartTypeTemplate.cxx b/chart2/source/model/template/BubbleChartTypeTemplate.cxx
index c9c3b6a..478a3fd 100644
--- a/chart2/source/model/template/BubbleChartTypeTemplate.cxx
+++ b/chart2/source/model/template/BubbleChartTypeTemplate.cxx
@@ -162,14 +162,6 @@ void SAL_CALL BubbleChartTypeTemplate::applyStyle(
 {
     ChartTypeTemplate::applyStyle( xSeries, nChartTypeIndex, nSeriesIndex, nSeriesCount );
     DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::makeAny( drawing::LineStyle_NONE ) );
-
-    try
-    {
-    }
-    catch( uno::Exception & ex )
-    {
-        ASSERT_EXCEPTION( ex );
-    }
 }
 
 // ____ XChartTypeTemplate ____
@@ -179,46 +171,6 @@ sal_Bool SAL_CALL BubbleChartTypeTemplate::supportsCategories()
     return false;
 }
 
-sal_Bool SAL_CALL BubbleChartTypeTemplate::matchesTemplate(
-    const Reference< chart2::XDiagram >& xDiagram,
-    sal_Bool bAdaptProperties )
-    throw (uno::RuntimeException)
-{
-    sal_Bool bResult = ChartTypeTemplate::matchesTemplate( xDiagram, bAdaptProperties );
-
-    if( bResult )
-    {
-        ::std::vector< Reference< chart2::XDataSeries > > aSeriesVec(
-            DiagramHelper::getDataSeriesFromDiagram( xDiagram ));
-
-        for( ::std::vector< Reference< chart2::XDataSeries > >::const_iterator aIt =
-                 aSeriesVec.begin(); aIt != aSeriesVec.end(); ++aIt )
-        {
-            try
-            {
-            }
-            catch( uno::Exception & ex )
-            {
-                ASSERT_EXCEPTION( ex );
-            }
-        }
-    }
-
-    // adapt curve style, spline order and resolution
-    if( bResult && bAdaptProperties )
-    {
-        try
-        {
-        }
-        catch( uno::Exception & ex )
-        {
-            ASSERT_EXCEPTION( ex );
-        }
-    }
-
-    return bResult;
-}
-
 Reference< chart2::XChartType > BubbleChartTypeTemplate::getChartTypeForIndex( sal_Int32 /*nChartTypeIndex*/ )
 {
     Reference< chart2::XChartType > xResult;
diff --git a/chart2/source/model/template/BubbleChartTypeTemplate.hxx b/chart2/source/model/template/BubbleChartTypeTemplate.hxx
index f5da3e3..b7f4b49 100644
--- a/chart2/source/model/template/BubbleChartTypeTemplate.hxx
+++ b/chart2/source/model/template/BubbleChartTypeTemplate.hxx
@@ -61,11 +61,6 @@ protected:
     // ____ XChartTypeTemplate ____
     virtual sal_Bool SAL_CALL supportsCategories()
         throw (::com::sun::star::uno::RuntimeException);
-    virtual sal_Bool SAL_CALL matchesTemplate(
-        const ::com::sun::star::uno::Reference<
-            ::com::sun::star::chart2::XDiagram >& xDiagram,
-        sal_Bool bAdaptProperties )
-        throw (::com::sun::star::uno::RuntimeException);
     virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartType > SAL_CALL
         getChartTypeForNewSeries( const ::com::sun::star::uno::Sequence<
             ::com::sun::star::uno::Reference<


More information about the Libreoffice-commits mailing list