chart2/source/inc/AxisHelper.hxx                 |   13 --
 chart2/source/inc/CommonConverters.hxx           |   23 ----
 chart2/source/inc/DataInterpreter.hxx            |    6 -
 chart2/source/inc/DataSeriesHelper.hxx           |   11 --
 chart2/source/inc/DataSourceHelper.hxx           |    3 
 chart2/source/inc/RegressionCurveHelper.hxx      |    2 
 chart2/source/inc/TitleHelper.hxx                |    4 
 chart2/source/inc/WeakListenerAdapter.hxx        |   13 --
 chart2/source/model/template/DataInterpreter.cxx |   15 ---
 chart2/source/tools/AxisHelper.cxx               |   70 --------------
 chart2/source/tools/DataSeriesHelper.cxx         |  113 -----------------------
 chart2/source/tools/DataSourceHelper.cxx         |    6 -
 chart2/source/tools/RegressionCurveHelper.cxx    |   22 ----
 chart2/source/tools/TitleHelper.cxx              |   21 ----
 chart2/source/tools/WeakListenerAdapter.cxx      |   15 ---
 chart2/source/view/main/VLegend.cxx              |   19 ---
 chart2/source/view/main/VLegend.hxx              |    2 
 include/svx/ctredlin.hxx                         |    2 
 include/svx/unoshape.hxx                         |    1 
 svx/inc/sdr/properties/groupproperties.hxx       |    3 
 svx/source/sdr/properties/groupproperties.cxx    |    5 -
 svx/source/unodraw/unoshap2.cxx                  |    4 
 sw/source/core/crsr/bookmark.cxx                 |    8 -
 sw/source/core/inc/bookmark.hxx                  |    1 
 ucb/source/ucp/webdav-curl/DAVTypes.hxx          |    2 
 25 files changed, 1 insertion(+), 383 deletions(-)

New commits:
commit 2cbf83e20889351e2d2a6e29e5c7d9250af58647
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Thu Feb 17 11:44:16 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Feb 17 14:51:23 2022 +0100

    loplugin:unusedmethods
    
    Change-Id: I58c60262ca543bafb4db4433dbb98b195f7571ea
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130063
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/chart2/source/inc/AxisHelper.hxx b/chart2/source/inc/AxisHelper.hxx
index 2cb10b832254..cd51d5adb3f6 100644
--- a/chart2/source/inc/AxisHelper.hxx
+++ b/chart2/source/inc/AxisHelper.hxx
@@ -56,7 +56,6 @@ public:
     static bool isLogarithmic( const css::uno::Reference< 
css::chart2::XScaling >& xScaling );
 
     static void checkDateAxis( css::chart2::ScaleData& rScale, 
ExplicitCategoriesProvider* pExplicitCategoriesProvider, bool 
bChartTypeAllowsDateAxis );
-    static css::chart2::ScaleData getDateCheckedScale( const 
css::uno::Reference< css::chart2::XAxis >& xAxis, ChartModel& rModel );
     static css::chart2::ScaleData getDateCheckedScale( const rtl::Reference< 
::chart::Axis >& xAxis, ChartModel& rModel );
 
     static sal_Int32 getExplicitNumberFormatKeyForAxis(
@@ -102,16 +101,12 @@ public:
     static bool isGridShown( sal_Int32 nDimensionIndex, sal_Int32 
nCooSysIndex, bool bMainGrid
                 , const rtl::Reference< ::chart::Diagram >& xDiagram );
 
-    static void makeAxisVisible( const css::uno::Reference< css::chart2::XAxis 
>& xAxis );
     static void makeAxisVisible( const rtl::Reference< ::chart::Axis >& xAxis 
);
     static void makeGridVisible( const css::uno::Reference< 
css::beans::XPropertySet >& xGridProperties );
 
-    static void makeAxisInvisible( const css::uno::Reference< 
css::chart2::XAxis >& xAxis );
     static void makeAxisInvisible( const rtl::Reference< ::chart::Axis >& 
xAxis );
     static void makeGridInvisible( const css::uno::Reference< 
css::beans::XPropertySet >& xGridProperties );
 
-    static void hideAxisIfNoDataIsAttached( const css::uno::Reference< 
css::chart2::XAxis >& xAxis
-                                          , const rtl::Reference< 
::chart::Diagram >& xDiagram);
     static void hideAxisIfNoDataIsAttached( const rtl::Reference< 
::chart::Axis >& xAxis
                                           , const rtl::Reference< 
::chart::Diagram >& xDiagram);
 
@@ -150,9 +145,6 @@ public:
     static rtl::Reference< ::chart::Axis >
         getParallelAxis( const css::uno::Reference< css::chart2::XAxis >& xAxis
             , const rtl::Reference< ::chart::Diagram >& xDiagram );
-    static rtl::Reference< ::chart::Axis >
-        getParallelAxis( const rtl::Reference< ::chart::Axis >& xAxis
-            , const rtl::Reference< ::chart::Diagram >& xDiagram );
 
     static css::uno::Reference< css::beans::XPropertySet >
         getGridProperties( const rtl::Reference< ::chart::BaseCoordinateSystem 
>& xCooSys
@@ -161,9 +153,6 @@ public:
                 , sal_Int32 nSubGridIndex //-1: Main Grid; 0: First SubGrid etc
                 );
 
-    static sal_Int32 getDimensionIndexOfAxis(
-              const css::uno::Reference< css::chart2::XAxis >& xAxis
-            , const rtl::Reference< ::chart::Diagram >& xDiagram );
     static sal_Int32 getDimensionIndexOfAxis(
               const rtl::Reference< ::chart::Axis >& xAxis
             , const rtl::Reference< ::chart::Diagram >& xDiagram );
@@ -219,8 +208,6 @@ public:
                         , const css::uno::Reference< 
css::uno::XComponentContext >& xContext
                         , ReferenceSizeProvider * pRefSizeProvider );
 
-    static bool shouldAxisBeDisplayed( const css::uno::Reference< 
css::chart2::XAxis >& xAxis
-                                       , const rtl::Reference< 
::chart::BaseCoordinateSystem >& xCooSys );
     static bool shouldAxisBeDisplayed( const rtl::Reference< ::chart::Axis >& 
xAxis
                                        , const rtl::Reference< 
::chart::BaseCoordinateSystem >& xCooSys );
     static bool isSecondaryYAxisNeeded( const rtl::Reference<
diff --git a/chart2/source/inc/CommonConverters.hxx 
b/chart2/source/inc/CommonConverters.hxx
index 682290b44e16..0e49b79dca1d 100644
--- a/chart2/source/inc/CommonConverters.hxx
+++ b/chart2/source/inc/CommonConverters.hxx
@@ -179,29 +179,8 @@ OOO_DLLPUBLIC_CHARTTOOLS
 css::uno::Sequence< OUString > DataSequenceToStringSequence(
     const css::uno::Reference< css::chart2::data::XDataSequence > & 
xDataSequence );
 
-/** uno::Sequence< uno::Sequence< T > > -> uno::Sequence< T >
+/** std::vector< std::vector< T > > -> std::vector< T >
  */
-template< typename T >
-css::uno::Sequence< T >
-    FlattenSequence( const css::uno::Sequence< css::uno::Sequence< T > > & 
aSeqSeq )
-{
-    sal_Int32 nOuter, nInner, nCount = 0,
-        nResultSize = 0;
-    const sal_Int32 nOuterSize = aSeqSeq.getLength();
-    for( nOuter=0; nOuter<nOuterSize; ++nOuter )
-        nResultSize += aSeqSeq[nOuter].getLength();
-    css::uno::Sequence< T > aResult( nResultSize );
-    auto aResultRange = asNonConstRange(aResult);
-
-    for( nOuter=0; nOuter<nOuterSize; ++nOuter )
-    {
-        const sal_Int32 nInnerSize = aSeqSeq[nOuter].getLength();
-        for( nInner=0; nInner<nInnerSize; ++nInner, ++nCount )
-            aResultRange[nCount] = aSeqSeq[nOuter][nInner];
-    }
-    return aResult;
-}
-
 template< typename T >
 std::vector< T >
     FlattenSequence( const std::vector< std::vector< T > > & aSeqSeq )
diff --git a/chart2/source/inc/DataInterpreter.hxx 
b/chart2/source/inc/DataInterpreter.hxx
index cdb0db5cc909..aa0f5578e369 100644
--- a/chart2/source/inc/DataInterpreter.hxx
+++ b/chart2/source/inc/DataInterpreter.hxx
@@ -68,12 +68,6 @@ public:
         const css::uno::Sequence<css::beans::PropertyValue > & aArguments,
         std::u16string_view rName );
 
-    static bool HasCategories(
-        const css::uno::Sequence< css::beans::PropertyValue > & rArguments,
-        const css::uno::Sequence< css::uno::Reference< 
css::chart2::data::XLabeledDataSequence > > & rData );
-    static bool HasCategories(
-        const css::uno::Sequence< css::beans::PropertyValue > & rArguments,
-        const std::vector< rtl::Reference< LabeledDataSequence > > & rData );
     static bool HasCategories(
         const css::uno::Sequence< css::beans::PropertyValue > & rArguments,
         const std::vector< css::uno::Reference< 
css::chart2::data::XLabeledDataSequence > > & rData );
diff --git a/chart2/source/inc/DataSeriesHelper.hxx 
b/chart2/source/inc/DataSeriesHelper.hxx
index 71ea3df0115d..49ef078537bd 100644
--- a/chart2/source/inc/DataSeriesHelper.hxx
+++ b/chart2/source/inc/DataSeriesHelper.hxx
@@ -48,8 +48,6 @@ namespace chart::DataSeriesHelper
 
 OOO_DLLPUBLIC_CHARTTOOLS OUString
     getRole( const 
css::uno::Reference<css::chart2::data::XLabeledDataSequence>& 
xLabeledDataSequence );
-OOO_DLLPUBLIC_CHARTTOOLS OUString
-    getRole( const rtl::Reference<::chart::LabeledDataSequence>& 
xLabeledDataSequence );
 
 /** Retrieves the data sequence in the given data source that matches the
     given role.  If more than one sequences match the role, the first match
@@ -97,8 +95,6 @@ getAllDataSequences(
     into a data source.  The order of sequences will match the order of the 
data
     series.
  */
-OOO_DLLPUBLIC_CHARTTOOLS rtl::Reference< ::chart::DataSource >
-    getDataSource( const css::uno::Sequence< css::uno::Reference< 
css::chart2::XDataSeries > > & aSeries );
 OOO_DLLPUBLIC_CHARTTOOLS rtl::Reference< ::chart::DataSource >
     getDataSource( const std::vector< rtl::Reference< ::chart::DataSeries > > 
& aSeries );
 
@@ -108,9 +104,6 @@ OOO_DLLPUBLIC_CHARTTOOLS rtl::Reference< 
::chart::DataSource >
         The data sequence contained in xSeries that has this role will be used
         to take its label.
  */
-OOO_DLLPUBLIC_CHARTTOOLS OUString getDataSeriesLabel(
-    const css::uno::Reference< css::chart2::XDataSeries > & xSeries,
-    const OUString & rLabelSequenceRole );
 OOO_DLLPUBLIC_CHARTTOOLS OUString getDataSeriesLabel(
     const rtl::Reference< ::chart::DataSeries > & xSeries,
     const OUString & rLabelSequenceRole );
@@ -120,10 +113,6 @@ OOO_DLLPUBLIC_CHARTTOOLS OUString getDataSeriesLabel(
 OOO_DLLPUBLIC_CHARTTOOLS OUString getLabelForLabeledDataSequence(
     const css::uno::Reference< css::chart2::data::XLabeledDataSequence > & 
xLabeledSeq );
 
-OOO_DLLPUBLIC_CHARTTOOLS void setStackModeAtSeries(
-    const css::uno::Sequence< css::uno::Reference< css::chart2::XDataSeries > 
> & aSeries,
-    const rtl::Reference< ::chart::BaseCoordinateSystem > & 
xCorrespondingCoordinateSystem,
-    StackMode eStackMode );
 OOO_DLLPUBLIC_CHARTTOOLS void setStackModeAtSeries(
     const std::vector< rtl::Reference< ::chart::DataSeries > > & aSeries,
     const rtl::Reference< ::chart::BaseCoordinateSystem > & 
xCorrespondingCoordinateSystem,
diff --git a/chart2/source/inc/DataSourceHelper.hxx 
b/chart2/source/inc/DataSourceHelper.hxx
index ff64d356e6d0..52ed68945917 100644
--- a/chart2/source/inc/DataSourceHelper.hxx
+++ b/chart2/source/inc/DataSourceHelper.hxx
@@ -86,9 +86,6 @@ public:
         static rtl::Reference< ::chart::DataSource > getUsedData(
                 ChartModel& rModel );
 
-        static rtl::Reference< ::chart::DataSource > getUsedData(
-            const rtl::Reference<::chart::ChartModel>& xChartModel );
-
         static bool detectRangeSegmentation(
             const rtl::Reference<::chart::ChartModel>& xChartModel
             , OUString& rOutRangeString
diff --git a/chart2/source/inc/RegressionCurveHelper.hxx 
b/chart2/source/inc/RegressionCurveHelper.hxx
index 7d7631cbdfc8..2666b41d9bb9 100644
--- a/chart2/source/inc/RegressionCurveHelper.hxx
+++ b/chart2/source/inc/RegressionCurveHelper.hxx
@@ -102,8 +102,6 @@ namespace chart::RegressionCurveHelper
      */
     OOO_DLLPUBLIC_CHARTTOOLS SvxChartRegress 
getFirstRegressTypeNotMeanValueLine(
         const css::uno::Reference<css::chart2::XRegressionCurveContainer>& 
xCurveContainer );
-    OOO_DLLPUBLIC_CHARTTOOLS SvxChartRegress 
getFirstRegressTypeNotMeanValueLine(
-        const rtl::Reference<::chart::DataSeries>& xCurveContainer );
 
     OOO_DLLPUBLIC_CHARTTOOLS SvxChartRegress getRegressionType(
         const css::uno::Reference<css::chart2::XRegressionCurve>& xCurve );
diff --git a/chart2/source/inc/TitleHelper.hxx 
b/chart2/source/inc/TitleHelper.hxx
index f6978674be0a..5eafa8bced23 100644
--- a/chart2/source/inc/TitleHelper.hxx
+++ b/chart2/source/inc/TitleHelper.hxx
@@ -83,10 +83,6 @@ public:
         , const css::uno::Reference< css::uno::XComponentContext > & xContext
         , const float * pDefaultCharHeight = nullptr );
 
-    static bool getTitleType( eTitleType& rType
-                    , const css::uno::Reference< css::chart2::XTitle >& xTitle
-                    , ChartModel& rModel);
-
     static bool getTitleType( eTitleType& rType
                     , const css::uno::Reference< css::chart2::XTitle >& xTitle
                     , const rtl::Reference< ::chart::ChartModel >& xModel );
diff --git a/chart2/source/inc/WeakListenerAdapter.hxx 
b/chart2/source/inc/WeakListenerAdapter.hxx
index 7240a5363f85..9df1e146125d 100644
--- a/chart2/source/inc/WeakListenerAdapter.hxx
+++ b/chart2/source/inc/WeakListenerAdapter.hxx
@@ -71,19 +71,6 @@ private:
     css::uno::WeakReference< Listener > m_xListener;
 };
 
-class WeakModifyListenerAdapter final :
-        public WeakListenerAdapter< css::util::XModifyListener >
-{
-public:
-    explicit WeakModifyListenerAdapter(
-        const css::uno::WeakReference< css::util::XModifyListener > & 
xListener );
-    virtual ~WeakModifyListenerAdapter() override;
-
-protected:
-    // ____ XModifyListener ____
-    virtual void SAL_CALL modified( const css::lang::EventObject& aEvent ) 
override;
-};
-
 class WeakSelectionChangeListenerAdapter final :
         public WeakListenerAdapter< css::view::XSelectionChangeListener >
 {
diff --git a/chart2/source/model/template/DataInterpreter.cxx 
b/chart2/source/model/template/DataInterpreter.cxx
index 4d45d2a58278..2b3eb1537cce 100644
--- a/chart2/source/model/template/DataInterpreter.cxx
+++ b/chart2/source/model/template/DataInterpreter.cxx
@@ -341,21 +341,6 @@ uno::Any DataInterpreter::GetProperty(
     return uno::Any();
 }
 
-bool DataInterpreter::HasCategories(
-    const Sequence< beans::PropertyValue > & rArguments,
-    const Sequence< Reference< data::XLabeledDataSequence > > & rData )
-{
-    bool bHasCategories = false;
-
-    if( rArguments.hasElements() )
-        GetProperty( rArguments, u"HasCategories" ) >>= bHasCategories;
-
-    for( sal_Int32 nLSeqIdx=0; ! bHasCategories && nLSeqIdx<rData.getLength(); 
++nLSeqIdx )
-        bHasCategories = ( rData[nLSeqIdx].is() && GetRole( 
rData[nLSeqIdx]->getValues() ) == "categories");
-
-    return bHasCategories;
-}
-
 bool DataInterpreter::HasCategories(
     const Sequence< beans::PropertyValue > & rArguments,
     const std::vector< uno::Reference< chart2::data::XLabeledDataSequence > > 
& rData )
diff --git a/chart2/source/tools/AxisHelper.cxx 
b/chart2/source/tools/AxisHelper.cxx
index 046822980bc0..c6005022544f 100644
--- a/chart2/source/tools/AxisHelper.cxx
+++ b/chart2/source/tools/AxisHelper.cxx
@@ -102,13 +102,6 @@ bool AxisHelper::isLogarithmic( const Reference< XScaling 
>& xScaling )
         && xServiceName->getServiceName() == 
"com.sun.star.chart2.LogarithmicScaling";
 }
 
-chart2::ScaleData AxisHelper::getDateCheckedScale( const Reference< 
chart2::XAxis >& xAxis, ChartModel& rModel )
-{
-    rtl::Reference< Axis > pAxis = dynamic_cast<Axis*>(xAxis.get());
-    assert(pAxis || !xAxis);
-    return getDateCheckedScale(pAxis, rModel);
-}
-
 chart2::ScaleData AxisHelper::getDateCheckedScale( const rtl::Reference< Axis 
>& xAxis, ChartModel& rModel )
 {
     ScaleData aScale = xAxis->getScaleData();
@@ -459,17 +452,6 @@ void AxisHelper::showGrid( sal_Int32 nDimensionIndex, 
sal_Int32 nCooSysIndex, bo
     }
 }
 
-void AxisHelper::makeAxisVisible( const Reference< XAxis >& xAxis )
-{
-    Reference< beans::XPropertySet > xProps( xAxis, uno::UNO_QUERY );
-    if( xProps.is() )
-    {
-        xProps->setPropertyValue( "Show", uno::Any( true ) );
-        LinePropertiesHelper::SetLineVisible( xProps );
-        xProps->setPropertyValue( "DisplayLabels", uno::Any( true ) );
-    }
-}
-
 void AxisHelper::makeAxisVisible( const rtl::Reference< Axis >& xAxis )
 {
     if( xAxis.is() )
@@ -495,15 +477,6 @@ void AxisHelper::hideAxis( sal_Int32 nDimensionIndex, bool 
bMainAxis
     AxisHelper::makeAxisInvisible( AxisHelper::getAxis( nDimensionIndex, 
bMainAxis, xDiagram ) );
 }
 
-void AxisHelper::makeAxisInvisible( const Reference< XAxis >& xAxis )
-{
-    Reference< beans::XPropertySet > xProps( xAxis, uno::UNO_QUERY );
-    if( xProps.is() )
-    {
-        xProps->setPropertyValue( "Show", uno::Any( false ) );
-    }
-}
-
 void AxisHelper::makeAxisInvisible( const rtl::Reference< Axis >& xAxis )
 {
     if( xAxis.is() )
@@ -512,13 +485,6 @@ void AxisHelper::makeAxisInvisible( const rtl::Reference< 
Axis >& xAxis )
     }
 }
 
-void AxisHelper::hideAxisIfNoDataIsAttached( const Reference< XAxis >& xAxis, 
const rtl::Reference< Diagram >& xDiagram )
-{
-    rtl::Reference< Axis > pAxis = dynamic_cast<Axis*>(xAxis.get());
-    assert(pAxis || !xAxis);
-    hideAxisIfNoDataIsAttached(pAxis, xDiagram);
-}
-
 void AxisHelper::hideAxisIfNoDataIsAttached( const rtl::Reference< Axis >& 
xAxis, const rtl::Reference< Diagram >& xDiagram )
 {
     //axis is hidden if no data is attached anymore but data is available
@@ -753,17 +719,6 @@ Reference< beans::XPropertySet > 
AxisHelper::getGridProperties(
     return xRet;
 }
 
-sal_Int32 AxisHelper::getDimensionIndexOfAxis(
-              const Reference< XAxis >& xAxis
-            , const rtl::Reference< Diagram >& xDiagram )
-{
-    sal_Int32 nDimensionIndex = -1;
-    sal_Int32 nCooSysIndex = -1;
-    sal_Int32 nAxisIndex = -1;
-    AxisHelper::getIndicesForAxis( xAxis, xDiagram, nCooSysIndex , 
nDimensionIndex, nAxisIndex );
-    return nDimensionIndex;
-}
-
 sal_Int32 AxisHelper::getDimensionIndexOfAxis(
               const rtl::Reference< Axis >& xAxis
             , const rtl::Reference< Diagram >& xDiagram )
@@ -968,31 +923,6 @@ bool AxisHelper::isSecondaryYAxisNeeded( const 
rtl::Reference< BaseCoordinateSys
     return false;
 }
 
-bool AxisHelper::shouldAxisBeDisplayed( const Reference< XAxis >& xAxis
-                                       , const rtl::Reference< 
BaseCoordinateSystem >& xCooSys )
-{
-    bool bRet = false;
-
-    if( xAxis.is() && xCooSys.is() )
-    {
-        sal_Int32 nDimensionIndex=-1;
-        sal_Int32 nAxisIndex=-1;
-        if( AxisHelper::getIndicesForAxis( xAxis, xCooSys, nDimensionIndex, 
nAxisIndex ) )
-        {
-            sal_Int32 nDimensionCount = xCooSys->getDimension();
-            rtl::Reference< ChartType > xChartType( 
AxisHelper::getChartTypeByIndex( xCooSys, 0 ) );
-
-            bool bMainAxis = (nAxisIndex==MAIN_AXIS_INDEX);
-            if( bMainAxis )
-                bRet = 
ChartTypeHelper::isSupportingMainAxis(xChartType,nDimensionCount,nDimensionIndex);
-            else
-                bRet = 
ChartTypeHelper::isSupportingSecondaryAxis(xChartType,nDimensionCount);
-        }
-    }
-
-    return bRet;
-}
-
 bool AxisHelper::shouldAxisBeDisplayed( const rtl::Reference< Axis >& xAxis
                                        , const rtl::Reference< 
BaseCoordinateSystem >& xCooSys )
 {
diff --git a/chart2/source/tools/DataSeriesHelper.cxx 
b/chart2/source/tools/DataSeriesHelper.cxx
index df7bef5e1de5..af86b98add8f 100644
--- a/chart2/source/tools/DataSeriesHelper.cxx
+++ b/chart2/source/tools/DataSeriesHelper.cxx
@@ -201,18 +201,6 @@ OUString getRole( const uno::Reference< 
chart2::data::XLabeledDataSequence >& xL
     return aRet;
 }
 
-OUString getRole( const rtl::Reference< ::chart::LabeledDataSequence >& 
xLabeledDataSequence )
-{
-    OUString aRet;
-    if( xLabeledDataSequence.is() )
-    {
-        Reference< beans::XPropertySet > xProp( 
xLabeledDataSequence->getValues(), uno::UNO_QUERY );
-        if( xProp.is() )
-            xProp->getPropertyValue( "Role" ) >>= aRet;
-    }
-    return aRet;
-}
-
 uno::Reference< chart2::data::XLabeledDataSequence >
     getDataSequenceByRole(
         const Reference< chart2::data::XDataSource > & xSource,
@@ -291,12 +279,6 @@ getAllDataSequences( const 
std::vector<rtl::Reference<DataSeries> >& aSeries )
     return aSeqVec;
 }
 
-rtl::Reference< ::chart::DataSource >
-    getDataSource( const Sequence< Reference< chart2::XDataSeries > > & 
aSeries )
-{
-    return new DataSource(getAllDataSequences(aSeries));
-}
-
 rtl::Reference< DataSource >
     getDataSource( const std::vector< rtl::Reference< DataSeries > > & aSeries 
)
 {
@@ -391,37 +373,6 @@ OUString getLabelForLabeledDataSequence(
     return aResult;
 }
 
-OUString getDataSeriesLabel(
-    const Reference< chart2::XDataSeries > & xSeries,
-    const OUString & rLabelSequenceRole )
-{
-    OUString aResult;
-
-    Reference< chart2::data::XDataSource > xSource( xSeries, uno::UNO_QUERY );
-    if( xSource.is())
-    {
-        Reference< chart2::data::XLabeledDataSequence > xLabeledSeq(
-            ::chart::DataSeriesHelper::getDataSequenceByRole( xSource, 
rLabelSequenceRole ));
-        if( xLabeledSeq.is())
-            aResult = getLabelForLabeledDataSequence( xLabeledSeq );
-        else
-        {
-            // special case: labeled data series with only a label and no 
values may
-            // serve as label
-            xLabeledSeq.set( lcl_findLSequenceWithOnlyLabel( xSource ));
-            if( xLabeledSeq.is())
-            {
-                Reference< chart2::data::XDataSequence > xSeq( 
xLabeledSeq->getLabel());
-                if( xSeq.is())
-                    aResult = lcl_getDataSequenceLabel( xSeq );
-            }
-        }
-
-    }
-
-    return aResult;
-}
-
 OUString getDataSeriesLabel(
     const rtl::Reference< DataSeries > & xSeries,
     const OUString & rLabelSequenceRole )
@@ -452,70 +403,6 @@ OUString getDataSeriesLabel(
     return aResult;
 }
 
-void setStackModeAtSeries(
-    const Sequence< Reference< chart2::XDataSeries > > & aSeries,
-    const rtl::Reference< BaseCoordinateSystem > & 
xCorrespondingCoordinateSystem,
-    StackMode eStackMode )
-{
-    const uno::Any aPropValue(
-        ( (eStackMode == StackMode::YStacked) ||
-          (eStackMode == StackMode::YStackedPercent) )
-        ? chart2::StackingDirection_Y_STACKING
-        : (eStackMode == StackMode::ZStacked )
-        ? chart2::StackingDirection_Z_STACKING
-        : chart2::StackingDirection_NO_STACKING );
-
-    std::set< sal_Int32 > aAxisIndexSet;
-    for( Reference< chart2::XDataSeries > const & dataSeries : aSeries )
-    {
-        try
-        {
-            Reference< beans::XPropertySet > xProp( dataSeries, uno::UNO_QUERY 
);
-            if( xProp.is() )
-            {
-                xProp->setPropertyValue( "StackingDirection", aPropValue );
-
-                sal_Int32 nAxisIndex;
-                xProp->getPropertyValue( "AttachedAxisIndex" ) >>= nAxisIndex;
-                aAxisIndexSet.insert(nAxisIndex);
-            }
-        }
-        catch( const uno::Exception & )
-        {
-            DBG_UNHANDLED_EXCEPTION("chart2");
-        }
-    }
-
-    if( !(xCorrespondingCoordinateSystem.is() &&
-        1 < xCorrespondingCoordinateSystem->getDimension()) )
-        return;
-
-    if( aAxisIndexSet.empty() )
-    {
-        aAxisIndexSet.insert(0);
-    }
-
-    for (auto const& axisIndex : aAxisIndexSet)
-    {
-        rtl::Reference< Axis > xAxis =
-            xCorrespondingCoordinateSystem->getAxisByDimension2(1, axisIndex);
-        if( xAxis.is())
-        {
-            bool bPercent = (eStackMode == StackMode::YStackedPercent);
-            chart2::ScaleData aScaleData = xAxis->getScaleData();
-
-            if( bPercent != (aScaleData.AxisType==chart2::AxisType::PERCENT) )
-            {
-                if( bPercent )
-                    aScaleData.AxisType = chart2::AxisType::PERCENT;
-                else
-                    aScaleData.AxisType = chart2::AxisType::REALNUMBER;
-                xAxis->setScaleData( aScaleData );
-            }
-        }
-    }
-}
-
 void setStackModeAtSeries(
     const std::vector< rtl::Reference< DataSeries > > & aSeries,
     const rtl::Reference< BaseCoordinateSystem > & 
xCorrespondingCoordinateSystem,
diff --git a/chart2/source/tools/DataSourceHelper.cxx 
b/chart2/source/tools/DataSourceHelper.cxx
index f3146961b4c9..bcbfbcbda756 100644
--- a/chart2/source/tools/DataSourceHelper.cxx
+++ b/chart2/source/tools/DataSourceHelper.cxx
@@ -275,12 +275,6 @@ uno::Sequence< OUString > 
DataSourceHelper::getUsedDataRanges( const rtl::Refere
     return getUsedDataRanges( xDiagram );
 }
 
-rtl::Reference< DataSource > DataSourceHelper::getUsedData(
-    const rtl::Reference<::chart::ChartModel>& xChartDoc )
-{
-    return pressUsedDataIntoRectangularFormat( xChartDoc );
-}
-
 rtl::Reference< DataSource > DataSourceHelper::getUsedData(
     ChartModel& rModel )
 {
diff --git a/chart2/source/tools/RegressionCurveHelper.cxx 
b/chart2/source/tools/RegressionCurveHelper.cxx
index ce4481ef8cfb..24be670b659c 100644
--- a/chart2/source/tools/RegressionCurveHelper.cxx
+++ b/chart2/source/tools/RegressionCurveHelper.cxx
@@ -756,28 +756,6 @@ SvxChartRegress 
RegressionCurveHelper::getFirstRegressTypeNotMeanValueLine(
     return eResult;
 }
 
-SvxChartRegress RegressionCurveHelper::getFirstRegressTypeNotMeanValueLine(
-    const rtl::Reference< DataSeries > & xRegCnt )
-{
-    SvxChartRegress eResult = SvxChartRegress::NONE;
-
-    if( xRegCnt.is())
-    {
-        for( rtl::Reference< RegressionCurveModel > const & curve : 
xRegCnt->getRegressionCurves2() )
-        {
-            SvxChartRegress eType = getRegressionType( curve );
-            if( eType != SvxChartRegress::MeanValue &&
-                eType != SvxChartRegress::Unknown )
-            {
-                eResult = eType;
-                break;
-            }
-        }
-    }
-
-    return eResult;
-}
-
 OUString RegressionCurveHelper::getUINameForRegressionCurve( const Reference< 
XRegressionCurve >& xRegressionCurve )
 {
     OUString aResult = getRegressionCurveSpecificName(xRegressionCurve);
diff --git a/chart2/source/tools/TitleHelper.cxx 
b/chart2/source/tools/TitleHelper.cxx
index 58d4d6980aa6..68cc9a290e43 100644
--- a/chart2/source/tools/TitleHelper.cxx
+++ b/chart2/source/tools/TitleHelper.cxx
@@ -392,27 +392,6 @@ void TitleHelper::removeTitle( TitleHelper::eTitleType 
nTitleIndex
     }
 }
 
-bool TitleHelper::getTitleType( eTitleType& rType
-                    , const css::uno::Reference< css::chart2::XTitle >& xTitle
-                    , ChartModel& rModel )
-{
-    if( !xTitle.is() )
-        return false;
-
-    Reference< chart2::XTitle > xCurrentTitle;
-    for( sal_Int32 nTitleType = TITLE_BEGIN; nTitleType < NORMAL_TITLE_END; 
nTitleType++ )
-    {
-        xCurrentTitle = TitleHelper::getTitle( 
static_cast<eTitleType>(nTitleType), rModel );
-        if( xCurrentTitle == xTitle )
-        {
-            rType = static_cast<eTitleType>(nTitleType);
-            return true;
-        }
-    }
-
-    return false;
-}
-
 bool TitleHelper::getTitleType( eTitleType& rType
                     , const css::uno::Reference< css::chart2::XTitle >& xTitle
                     , const rtl::Reference<ChartModel>& xModel )
diff --git a/chart2/source/tools/WeakListenerAdapter.cxx 
b/chart2/source/tools/WeakListenerAdapter.cxx
index 85b2f3b39a36..16b3d815031c 100644
--- a/chart2/source/tools/WeakListenerAdapter.cxx
+++ b/chart2/source/tools/WeakListenerAdapter.cxx
@@ -26,21 +26,6 @@ using ::com::sun::star::uno::Reference;
 namespace chart
 {
 
-WeakModifyListenerAdapter::WeakModifyListenerAdapter(
-    const uno::WeakReference< util::XModifyListener > & xListener ) :
-        WeakListenerAdapter< css::util::XModifyListener >( xListener )
-{}
-
-WeakModifyListenerAdapter::~WeakModifyListenerAdapter()
-{}
-
-void SAL_CALL WeakModifyListenerAdapter::modified( const lang::EventObject& 
aEvent )
-{
-    Reference< util::XModifyListener > xModListener( getListener() );
-    if( xModListener.is())
-        xModListener->modified( aEvent );
-}
-
 WeakSelectionChangeListenerAdapter::WeakSelectionChangeListenerAdapter(
     const Reference< view::XSelectionChangeListener > & xListener ) :
         WeakListenerAdapter< css::view::XSelectionChangeListener >( xListener )
diff --git a/chart2/source/view/main/VLegend.cxx 
b/chart2/source/view/main/VLegend.cxx
index 4d32fe04bc90..794d8d41ed22 100644
--- a/chart2/source/view/main/VLegend.cxx
+++ b/chart2/source/view/main/VLegend.cxx
@@ -889,25 +889,6 @@ void VLegend::setDefaultWritingMode( sal_Int16 
nDefaultWritingMode )
     m_nDefaultWritingMode = nDefaultWritingMode;
 }
 
-bool VLegend::isVisible( const Reference< XLegend > & xLegend )
-{
-    if( ! xLegend.is())
-        return false;
-
-    bool bShow = false;
-    try
-    {
-        Reference< beans::XPropertySet > xLegendProp( xLegend, 
uno::UNO_QUERY_THROW );
-        xLegendProp->getPropertyValue( "Show") >>= bShow;
-    }
-    catch( const uno::Exception & )
-    {
-        DBG_UNHANDLED_EXCEPTION("chart2");
-    }
-
-    return bShow;
-}
-
 bool VLegend::isVisible( const rtl::Reference< Legend > & xLegend )
 {
     if( ! xLegend.is())
diff --git a/chart2/source/view/main/VLegend.hxx 
b/chart2/source/view/main/VLegend.hxx
index 7e8435a7c297..c6080c52d4a0 100644
--- a/chart2/source/view/main/VLegend.hxx
+++ b/chart2/source/view/main/VLegend.hxx
@@ -67,8 +67,6 @@ public:
         const css::awt::Size & rReferenceSize,
         const css::awt::Size & rDefaultLegendSize );
 
-    static bool isVisible(
-        const css::uno::Reference< css::chart2::XLegend > & xLegend );
     static bool isVisible(
         const rtl::Reference< ::chart::Legend > & xLegend );
 
diff --git a/include/svx/ctredlin.hxx b/include/svx/ctredlin.hxx
index ed12b6d10f9f..1a95c88320dc 100644
--- a/include/svx/ctredlin.hxx
+++ b/include/svx/ctredlin.hxx
@@ -334,8 +334,6 @@ public:
 
     SvxTPFilter*    GetFilterPage() { return m_xTPFilter.get(); }
     SvxTPView*      GetViewPage() { return m_xTPView.get(); }
-
-    void set_help_id(const OString& rId) { m_xTabCtrl->set_help_id(rId); }
 };
 
 #endif // INCLUDED_SVX_CTREDLIN_HXX
diff --git a/include/svx/unoshape.hxx b/include/svx/unoshape.hxx
index 61cfdd502638..427904d87c18 100644
--- a/include/svx/unoshape.hxx
+++ b/include/svx/unoshape.hxx
@@ -417,7 +417,6 @@ class SVXCORE_DLLPUBLIC SvxShapeGroupAnyD : public SvxShape,
                       public css::drawing::XShapes
 {
 public:
-    SvxShapeGroupAnyD( SdrObject* pObj );
     SvxShapeGroupAnyD( SdrObject* pObject, const SfxItemPropertyMapEntry* 
pEntries, const SvxItemPropertySet* pPropertySet );
     virtual ~SvxShapeGroupAnyD() noexcept override;
 
diff --git a/svx/inc/sdr/properties/groupproperties.hxx 
b/svx/inc/sdr/properties/groupproperties.hxx
index cc658a89a8b0..a5798440f983 100644
--- a/svx/inc/sdr/properties/groupproperties.hxx
+++ b/svx/inc/sdr/properties/groupproperties.hxx
@@ -34,9 +34,6 @@ namespace sdr::properties
             // basic constructor
             explicit GroupProperties(SdrObject& rObj);
 
-            // copy constructor
-            GroupProperties(const GroupProperties& rProps, SdrObject& rObj);
-
             // destructor
             virtual ~GroupProperties() override;
 
diff --git a/svx/source/sdr/properties/groupproperties.cxx 
b/svx/source/sdr/properties/groupproperties.cxx
index c84c856d0747..011d252702e0 100644
--- a/svx/source/sdr/properties/groupproperties.cxx
+++ b/svx/source/sdr/properties/groupproperties.cxx
@@ -37,11 +37,6 @@ namespace sdr::properties
         {
         }
 
-        GroupProperties::GroupProperties(const GroupProperties& , SdrObject& 
rObj)
-        :   BaseProperties(rObj)
-        {
-        }
-
         GroupProperties::~GroupProperties()
         {
         }
diff --git a/svx/source/unodraw/unoshap2.cxx b/svx/source/unodraw/unoshap2.cxx
index aecd0e0a8593..e68676b577c8 100644
--- a/svx/source/unodraw/unoshap2.cxx
+++ b/svx/source/unodraw/unoshap2.cxx
@@ -1778,10 +1778,6 @@ void SvxCustomShape::createCustomShapeDefaults( const 
OUString& rValueType )
     static_cast<SdrObjCustomShape*>(GetSdrObject())->MergeDefaultAttributes( 
&rValueType );
 }
 
-SvxShapeGroupAnyD::SvxShapeGroupAnyD(SdrObject* pObj)
-    : SvxShape(pObj)
-{}
-
 SvxShapeGroupAnyD::SvxShapeGroupAnyD( SdrObject* pObject, const 
SfxItemPropertyMapEntry* pEntries, const SvxItemPropertySet* pPropertySet )
     : SvxShape(pObject, pEntries, pPropertySet)
 {}
diff --git a/sw/source/core/crsr/bookmark.cxx b/sw/source/core/crsr/bookmark.cxx
index 417558aad130..a33cb1c1eab0 100644
--- a/sw/source/core/crsr/bookmark.cxx
+++ b/sw/source/core/crsr/bookmark.cxx
@@ -513,14 +513,6 @@ namespace sw::mark
             return SetOtherMarkPos( rNewStartPos );
     }
 
-    void Fieldmark::SetMarkEndPos( const SwPosition& rNewEndPos )
-    {
-        if ( GetMarkPos( ) <= GetOtherMarkPos( ) )
-            return SetOtherMarkPos( rNewEndPos );
-        else
-            return SetMarkPos( rNewEndPos );
-    }
-
     OUString Fieldmark::ToString( ) const
     {
         return "Fieldmark: ( Name, Type, [ Nd1, Id1 ], [ Nd2, Id2 ] ): ( " + 
m_aName + ", "
diff --git a/sw/source/core/inc/bookmark.hxx b/sw/source/core/inc/bookmark.hxx
index f352eebadf77..2c5cfacfcd28 100644
--- a/sw/source/core/inc/bookmark.hxx
+++ b/sw/source/core/inc/bookmark.hxx
@@ -222,7 +222,6 @@ namespace sw::mark {
             virtual void ReleaseDoc(SwDoc&) = 0;
 
             void SetMarkStartPos( const SwPosition& rNewStartPos );
-            void SetMarkEndPos( const SwPosition& rNewEndPos );
 
             virtual void Invalidate() override;
             virtual OUString ToString() const override;
diff --git a/ucb/source/ucp/webdav-curl/DAVTypes.hxx 
b/ucb/source/ucp/webdav-curl/DAVTypes.hxx
index 7bf8bc37624e..ac43becc79c5 100644
--- a/ucb/source/ucp/webdav-curl/DAVTypes.hxx
+++ b/ucb/source/ucp/webdav-curl/DAVTypes.hxx
@@ -111,7 +111,6 @@ namespace http_dav_ucp
         void setStaleTime( const sal_uInt32 nStaleTime ) { m_nStaleTime = 
nStaleTime; };
 
         sal_uInt32 getRequestedTimeLife() const { return m_nRequestedTimeLife; 
};
-        void setRequestedTimeLife( const sal_uInt32 nRequestedTimeLife ) { 
m_nRequestedTimeLife = nRequestedTimeLife; };
 
         const OUString & getURL() const { return m_sURL; };
         void setURL( const OUString & sURL ) { m_sURL = sURL; };
@@ -120,7 +119,6 @@ namespace http_dav_ucp
         void setRedirectedURL( const OUString & sRedirectedURL ) { 
m_sRedirectedURL = sRedirectedURL; };
 
         void  setAllowedMethods( const OUString & aAllowedMethods ) { 
m_aAllowedMethods = aAllowedMethods; } ;
-        const OUString & getAllowedMethods() const { return m_aAllowedMethods; 
} ;
         bool isLockAllowed() const { return ( m_aAllowedMethods.indexOf( 
"LOCK" ) != -1 ); };
 
         void setLocked( bool locked = true ) { m_isLocked = locked; } ;

Reply via email to