summaryrefslogtreecommitdiff
path: root/vcl/source/window/builder.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-06-24 13:09:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-06-24 22:16:24 +0200
commit7e4a3eee79b49216696f8c51bf833eee3e06a803 (patch)
tree9a6ceee7e11d2ceeb402303e4cf696c86defd05a /vcl/source/window/builder.cxx
parentefa19c9a5004699d844d108e2bf0dce845d48959 (diff)
loplugin:unusedmethods
Change-Id: Ib724da1f07be9e8f4d0d505f7f2886990cab661f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97022 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/builder.cxx')
-rw-r--r--vcl/source/window/builder.cxx62
1 files changed, 0 insertions, 62 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index fd603fec5ee1..663eb7a40bcb 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -4396,68 +4396,6 @@ void VclBuilder::mungeAdjustment(FormattedField &rTarget, const Adjustment &rAdj
rTarget.SetSpinSize(nSpinSize);
}
-void VclBuilder::mungeAdjustment(TimeField &rTarget, const Adjustment &rAdjustment)
-{
- for (auto const& elem : rAdjustment)
- {
- const OString &rKey = elem.first;
- const OUString &rValue = elem.second;
-
- if (rKey == "upper")
- {
- tools::Time aUpper(rValue.toInt32());
- rTarget.SetMax(aUpper);
- rTarget.SetLast(aUpper);
- }
- else if (rKey == "lower")
- {
- tools::Time aLower(rValue.toInt32());
- rTarget.SetMin(aLower);
- rTarget.SetFirst(aLower);
- }
- else if (rKey == "value")
- {
- tools::Time aValue(rValue.toInt32());
- rTarget.SetTime(aValue);
- }
- else
- {
- SAL_INFO("vcl.builder", "unhandled property :" << rKey);
- }
- }
-}
-
-void VclBuilder::mungeAdjustment(DateField &rTarget, const Adjustment &rAdjustment)
-{
- for (auto const& elem : rAdjustment)
- {
- const OString &rKey = elem.first;
- const OUString &rValue = elem.second;
-
- if (rKey == "upper")
- {
- Date aUpper(rValue.toInt32());
- rTarget.SetMax(aUpper);
- rTarget.SetLast(aUpper);
- }
- else if (rKey == "lower")
- {
- Date aLower(rValue.toInt32());
- rTarget.SetMin(aLower);
- rTarget.SetFirst(aLower);
- }
- else if (rKey == "value")
- {
- Date aValue(rValue.toInt32());
- rTarget.SetDate(aValue);
- }
- else
- {
- SAL_INFO("vcl.builder", "unhandled property :" << rKey);
- }
- }
-}
-
void VclBuilder::mungeAdjustment(ScrollBar &rTarget, const Adjustment &rAdjustment)
{
for (auto const& elem : rAdjustment)