diff options
author | Zsolt Bölöny <bolony.zsolt@gmail.com> | 2015-05-18 20:39:06 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-06-05 07:06:54 +0000 |
commit | 374d53f5ee0204b17b76a1f447b041ce5479971d (patch) | |
tree | 9509b5a97582fb5edf6019648c59acdb593c8d9e /include/basegfx | |
parent | d119f4bae4c688ce799f2c5493f345194ca41ab1 (diff) |
Removed B{2,3}DTuple's custom treshold equal() and equalZero() methods
Change-Id: I351b624c2282cbe9d37b32161eec574ce64c11be
Reviewed-on: https://gerrit.libreoffice.org/15807
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/basegfx')
-rw-r--r-- | include/basegfx/tuple/b2dtuple.hxx | 14 | ||||
-rw-r--r-- | include/basegfx/tuple/b3dtuple.hxx | 17 |
2 files changed, 0 insertions, 31 deletions
diff --git a/include/basegfx/tuple/b2dtuple.hxx b/include/basegfx/tuple/b2dtuple.hxx index a00b57b8a75e..5659c7bf8a9a 100644 --- a/include/basegfx/tuple/b2dtuple.hxx +++ b/include/basegfx/tuple/b2dtuple.hxx @@ -139,12 +139,6 @@ namespace basegfx (fTools::equalZero(mfX) && fTools::equalZero(mfY))); } - bool equalZero(const double& rfSmallValue) const - { - return (this == &getEmptyTuple() || - (fTools::equalZero(mfX, rfSmallValue) && fTools::equalZero(mfY, rfSmallValue))); - } - bool equal(const B2DTuple& rTup) const { return ( @@ -153,14 +147,6 @@ namespace basegfx fTools::equal(mfY, rTup.mfY))); } - bool equal(const B2DTuple& rTup, const double& rfSmallValue) const - { - return ( - this == &rTup || - (fTools::equal(mfX, rTup.mfX, rfSmallValue) && - fTools::equal(mfY, rTup.mfY, rfSmallValue))); - } - // operators diff --git a/include/basegfx/tuple/b3dtuple.hxx b/include/basegfx/tuple/b3dtuple.hxx index 85df69879660..5bd5cc950c89 100644 --- a/include/basegfx/tuple/b3dtuple.hxx +++ b/include/basegfx/tuple/b3dtuple.hxx @@ -154,14 +154,6 @@ namespace basegfx && ::basegfx::fTools::equalZero(mfZ))); } - bool equalZero(const double& rfSmallValue) const - { - return (this == &getEmptyTuple() || - (::basegfx::fTools::equalZero(mfX, rfSmallValue) - && ::basegfx::fTools::equalZero(mfY, rfSmallValue) - && ::basegfx::fTools::equalZero(mfZ, rfSmallValue))); - } - bool equal(const B3DTuple& rTup) const { return ( @@ -171,15 +163,6 @@ namespace basegfx ::basegfx::fTools::equal(mfZ, rTup.mfZ))); } - bool equal(const B3DTuple& rTup, const double& rfSmallValue) const - { - return ( - this == &rTup || - (::basegfx::fTools::equal(mfX, rTup.mfX, rfSmallValue) && - ::basegfx::fTools::equal(mfY, rTup.mfY, rfSmallValue) && - ::basegfx::fTools::equal(mfZ, rTup.mfZ, rfSmallValue))); - } - // operators |