summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-03-30 20:52:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-04-02 14:53:47 +0100
commitb26df89e6c9405c5818a6f31f2c012ab657c421d (patch)
tree2ffbd0eb473f70da7f03685528b479640bfbe7b2 /tools
parent54bc03051702ad279dfd17471a3d5c30003c892d (diff)
callcatcher: remove some unused code
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/svborder.hxx1
-rw-r--r--tools/source/generic/svborder.cxx18
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