summaryrefslogtreecommitdiff
path: root/chart2/source/model/main
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-21 10:15:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-21 10:07:37 +0000
commit0649622956431e0a1955cb80d1175025401ab5e5 (patch)
treecdaa1ff406d232399d53594ad1a32691402ab665 /chart2/source/model/main
parentede35e5c693a287f31e3c02d8afd33580e827380 (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/source/model/main')
-rw-r--r--chart2/source/model/main/ChartModel.cxx36
1 files changed, 0 insertions, 36 deletions
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;