diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-21 16:07:47 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-25 15:16:57 +0200 |
commit | ffdd5d304779e7ec7cdf7d4f5dbeb24584970c6b (patch) | |
tree | a604155c23874afd4400c1bc8cba40d80c4479db /basegfx/source/numeric | |
parent | a77461db606859f8b29b24990094deaceed07114 (diff) |
remove unused code basegfx::snapToRange(double, double, double)
Change-Id: I72813be5f82b1a43fbb765d1b5f96f47b62920b8
Diffstat (limited to 'basegfx/source/numeric')
-rw-r--r-- | basegfx/source/numeric/ftools.cxx | 25 |
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: */ |