diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-08-14 22:08:17 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-08-17 11:24:46 +0200 |
commit | 28708b5b7ad12bc30f02142c990e5ad4128af912 (patch) | |
tree | b3a25f28020dd2693dcbc0e8e66ea2656f1fc351 /tools | |
parent | 8e5cb2bcae998b8606de12c7bc4cde1f98346190 (diff) |
Simplify and inline tools::Rectangle::Justify
Change-Id: I535fb70fa532d98542ac30e0b2053bdaa6b94383
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120494
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/gen.cxx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx index 4d365a575808..027c7b9356b1 100644 --- a/tools/source/generic/gen.cxx +++ b/tools/source/generic/gen.cxx @@ -35,15 +35,6 @@ OString Pair::toString() const return OString::number(A()) + ", " + OString::number(B()); } -tools::Rectangle tools::Rectangle::Justify( const Point& rLT, const Point& rRB ) -{ - tools::Long nLeft = std::min(rLT.X(), rRB.X()); - tools::Long nTop = std::min(rLT.Y(), rRB.Y()); - tools::Long nRight = std::max(rLT.X(), rRB.X()); - tools::Long nBottom = std::max(rLT.Y(), rRB.Y()); - return Rectangle( nLeft, nTop, nRight, nBottom ); -} - void tools::Rectangle::SetSize( const Size& rSize ) { if ( rSize.Width() < 0 ) |