diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-21 10:15:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-21 10:07:37 +0000 |
commit | 0649622956431e0a1955cb80d1175025401ab5e5 (patch) | |
tree | cdaa1ff406d232399d53594ad1a32691402ab665 /chart2 | |
parent | ede35e5c693a287f31e3c02d8afd33580e827380 (diff) |
loplugin:unusedmethods
Change-Id: I52a9f16f3ed543a3c83ca111df70e3f7ae1ef33c
Reviewed-on: https://gerrit.libreoffice.org/34508
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/inc/ChartModel.hxx | 2 | ||||
-rw-r--r-- | chart2/source/model/main/ChartModel.cxx | 36 |
2 files changed, 0 insertions, 38 deletions
diff --git a/chart2/inc/ChartModel.hxx b/chart2/inc/ChartModel.hxx index 6af2660954fe..04e3be2b6ee3 100644 --- a/chart2/inc/ChartModel.hxx +++ b/chart2/inc/ChartModel.hxx @@ -466,9 +466,7 @@ public: css::uno::Reference< css::uno::XInterface > getChartView() const; bool isTimeBased() const { return mbTimeBased;} - void setTimeBased(bool bTimeBased); - void getNextTimePoint(); void setTimeBasedRange(sal_Int32 nStart, sal_Int32 nEnd); #if HAVE_FEATURE_OPENGL diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx index a3c26532907a..fe8ada3639d0 100644 --- a/chart2/source/model/main/ChartModel.cxx +++ b/chart2/source/model/main/ChartModel.cxx @@ -1320,42 +1320,6 @@ OUString SAL_CALL ChartModel::dump() return OUString(); } -void ChartModel::setTimeBased(bool bTimeBased) -{ - mbTimeBased = bTimeBased; - uno::Sequence<Reference< chart2::data::XLabeledDataSequence > > - xDataSequences = getDataSequences(); - sal_Int32 n = xDataSequences.getLength(); - for(sal_Int32 i = 0; i < n; ++i) - { - uno::Reference< chart2::XTimeBased > xTimeBased(xDataSequences[i]->getValues(), uno::UNO_QUERY); - SAL_WARN_IF(!xTimeBased.is(), "chart2", "does not support time based charting"); - if(xTimeBased.is()) - { - uno::Reference< beans::XPropertySet > xPropSet(xTimeBased, uno::UNO_QUERY_THROW); - xPropSet->setPropertyValue("TimeBased", uno::Any(bTimeBased)); - } - } -} - -void ChartModel::getNextTimePoint() -{ - uno::Sequence< Reference< chart2::data::XLabeledDataSequence > > xDataSequences = getDataSequences(); - sal_Int32 n = xDataSequences.getLength(); - for(sal_Int32 i = 0; i < n; ++i) - { - uno::Reference< chart2::XTimeBased > xTimeBased(xDataSequences[i]->getValues(), uno::UNO_QUERY); - SAL_WARN_IF(!xTimeBased.is(), "chart2", "does not support time based charting"); - if(xTimeBased.is()) - { - if(!bSet) - xTimeBased->setRange(mnStart, mnEnd); - xTimeBased->switchToNext(true); - } - } - bSet = true; -} - void ChartModel::setTimeBasedRange(sal_Int32 nStart, sal_Int32 nEnd) { bSet = false; |