summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2022-06-14 05:37:30 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2022-06-17 20:41:28 +0200
commit80d801cf07b6583e824ad89c3c750b076118f41d (patch)
tree359abf430ee078db1eccd888408dfb8e0d0a4456 /tools
parente2a8b4a420ab0f726c43ec6c609d17211cd6ed11 (diff)
Rectangle: split SetSize into SetWidth/SetHeight
... and inline the functions. Change-Id: I9285c72e8524f8f0a2d242bfd4cd29edf6d1ed73 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135811 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/gen.cxx17
1 files changed, 0 insertions, 17 deletions
diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx
index 27120d6abbd1..069b7482cfba 100644
--- a/tools/source/generic/gen.cxx
+++ b/tools/source/generic/gen.cxx
@@ -42,23 +42,6 @@ size_t Pair::GetHashValue() const
return hash;
}
-void tools::Rectangle::SetSize( const Size& rSize )
-{
- if ( rSize.Width() < 0 )
- nRight = nLeft + rSize.Width() +1;
- else if ( rSize.Width() > 0 )
- nRight = nLeft + rSize.Width() -1;
- else
- SetWidthEmpty();
-
- if ( rSize.Height() < 0 )
- nBottom = nTop + rSize.Height() +1;
- else if ( rSize.Height() > 0 )
- nBottom = nTop + rSize.Height() -1;
- else
- SetHeightEmpty();
-}
-
void tools::Rectangle::SaturatingSetSize(const Size& rSize)
{
if (rSize.Width() < 0)