summaryrefslogtreecommitdiff
path: root/basegfx/source/numeric
diff options
context:
space:
mode:
Diffstat (limited to 'basegfx/source/numeric')
-rw-r--r--basegfx/source/numeric/ftools.cxx25
1 files changed, 0 insertions, 25 deletions
diff --git a/basegfx/source/numeric/ftools.cxx b/basegfx/source/numeric/ftools.cxx
index 1cbbe5cc2136..a3a27a7a50c8 100644
--- a/basegfx/source/numeric/ftools.cxx
+++ b/basegfx/source/numeric/ftools.cxx
@@ -75,31 +75,6 @@ namespace basegfx
}
}
- double snapToRange(double v, double fLow, double fHigh)
- {
- if(fTools::equal(fLow, fHigh))
- {
- // with no range all snaps to range bound
- return 0.0;
- }
- else
- {
- if(fLow > fHigh)
- {
- // correct range order. Evtl. assert this (?)
- std::swap(fLow, fHigh);
- }
-
- if(v < fLow || v > fHigh)
- {
- return snapToZeroRange(v - fLow, fHigh - fLow) + fLow;
- }
- else
- {
- return v;
- }
- }
- }
} // end of namespace basegfx
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */