diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/svborder.hxx | 1 | ||||
-rw-r--r-- | tools/source/generic/svborder.cxx | 18 |
2 files changed, 0 insertions, 19 deletions
diff --git a/tools/inc/tools/svborder.hxx b/tools/inc/tools/svborder.hxx index 86c5feb4f4dc..27ccdd008d74 100644 --- a/tools/inc/tools/svborder.hxx +++ b/tools/inc/tools/svborder.hxx @@ -40,7 +40,6 @@ public: { nTop = nRight = nBottom = nLeft = 0; } SvBorder( const Size & rSz ) { nTop = nBottom = rSz.Height(); nRight = nLeft = rSz.Width(); } - SvBorder( const Rectangle & rOuter, const Rectangle & rInner ); SvBorder( long nLeftP, long nTopP, long nRightP, long nBottomP ) { nLeft = nLeftP; nTop = nTopP; nRight = nRightP; nBottom = nBottomP; } sal_Bool operator == ( const SvBorder & rObj ) const diff --git a/tools/source/generic/svborder.cxx b/tools/source/generic/svborder.cxx index 0c55c9515f56..6b9f0d636e7f 100644 --- a/tools/source/generic/svborder.cxx +++ b/tools/source/generic/svborder.cxx @@ -30,24 +30,6 @@ #include <tools/svborder.hxx> #include <osl/diagnose.h> -SvBorder::SvBorder( const Rectangle & rOuter, const Rectangle & rInner ) -{ - Rectangle aOuter( rOuter ); - aOuter.Justify(); - Rectangle aInner( rInner ); - if( aInner.IsEmpty() ) - aInner = Rectangle( aOuter.Center(), aOuter.Center() ); - else - aInner.Justify(); - - OSL_ENSURE( aOuter.IsInside( aInner ), - "SvBorder::SvBorder: sal_False == aOuter.IsInside( aInner )" ); - nTop = aInner.Top() - aOuter.Top(); - nRight = aOuter.Right() - aInner.Right(); - nBottom = aOuter.Bottom() - aInner.Bottom(); - nLeft = aInner.Left() - aOuter.Left(); -} - Rectangle & operator += ( Rectangle & rRect, const SvBorder & rBorder ) { // wegen Empty-Rect, GetSize muss als erstes gerufen werden |