summaryrefslogtreecommitdiff
path: root/basegfx/source
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-07-27 12:20:17 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-07-27 15:38:00 +0200
commitb24a1bcab389c0aefc1ddea9a1b81880f699df56 (patch)
treea6d3a0c6326890f9dff7111b2fb23a01b3e7a9fb /basegfx/source
parentda10cc990980f2f54b40f3165a6df3d0701cc958 (diff)
Drop redundant check
If value is not approximately equal to zero, its square root also is not Change-Id: I0a2c30a8a85c64406e3a8ea8cff2315f25c2226d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119444 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'basegfx/source')
-rw-r--r--basegfx/source/vector/b3dvector.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/basegfx/source/vector/b3dvector.cxx b/basegfx/source/vector/b3dvector.cxx
index 7dd5acf57f36..002ee330f9f4 100644
--- a/basegfx/source/vector/b3dvector.cxx
+++ b/basegfx/source/vector/b3dvector.cxx
@@ -34,12 +34,9 @@ namespace basegfx
{
fLen = sqrt(fLen);
- if(!::basegfx::fTools::equalZero(fLen))
- {
- mfX /= fLen;
- mfY /= fLen;
- mfZ /= fLen;
- }
+ mfX /= fLen;
+ mfY /= fLen;
+ mfZ /= fLen;
}
}