summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2011-12-22 19:49:21 -0500
committerAugust Sodora <augsod@gmail.com>2011-12-22 19:55:53 -0500
commitbbad7057b2bdb614a5e97a945039323efe39c4ee (patch)
tree04531c9181fa2bed55ead1f18244a3b58a762a3f /tools
parent0c181a33c9bdcaad9ee2d354ebed9c780120851d (diff)
callcatcher: Remove unused code
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/pstm.hxx5
-rw-r--r--tools/inc/tools/stream.hxx1
-rw-r--r--tools/inc/tools/svborder.hxx1
-rw-r--r--tools/source/generic/svborder.cxx18
-rw-r--r--tools/source/ref/pstm.cxx58
-rw-r--r--tools/source/stream/strmunx.cxx11
6 files changed, 0 insertions, 94 deletions
diff --git a/tools/inc/tools/pstm.hxx b/tools/inc/tools/pstm.hxx
index 68b4932e1e51..125875cac8c4 100644
--- a/tools/inc/tools/pstm.hxx
+++ b/tools/inc/tools/pstm.hxx
@@ -127,7 +127,6 @@ class TOOLS_DLLPUBLIC SvPersistBaseMemberList : public SuperSvPersistBaseMemberL
{
public:
SvPersistBaseMemberList();
- SvPersistBaseMemberList(sal_uInt16 nInitSz, sal_uInt16 nResize );
void WriteObjects( SvPersistStream &, sal_Bool bOnlyStreamedObj = sal_False ) const;
TOOLS_DLLPUBLIC friend SvPersistStream& operator << (SvPersistStream &, const SvPersistBaseMemberList &);
@@ -217,8 +216,6 @@ public:
SvPersistStream( SvClassManager &, SvStream * pStream,
sal_uInt32 nStartIdx = 1 );
- SvPersistStream( SvClassManager &, SvStream * pStream,
- const SvPersistStream & rPersStm );
~SvPersistStream();
void SetStream( SvStream * pStream );
@@ -247,8 +244,6 @@ public:
// gespeichert werden.
friend SvStream& operator >> ( SvStream &, SvPersistStream & );
friend SvStream& operator << ( SvStream &, SvPersistStream & );
- sal_uIntPtr InsertObj( SvPersistBase * );
- sal_uIntPtr RemoveObj( SvPersistBase * );
};
#endif // _PSTM_HXX
diff --git a/tools/inc/tools/stream.hxx b/tools/inc/tools/stream.hxx
index 2270effbd074..decae4934f35 100644
--- a/tools/inc/tools/stream.hxx
+++ b/tools/inc/tools/stream.hxx
@@ -651,7 +651,6 @@ public:
sal_Bool LockRange( sal_Size nByteOffset, sal_Size nBytes );
sal_Bool UnlockRange( sal_Size nByteOffset, sal_Size nBytes );
sal_Bool LockFile();
- sal_Bool UnlockFile();
void Open( const String& rFileName, StreamMode eOpenMode );
void Close();
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
diff --git a/tools/source/ref/pstm.cxx b/tools/source/ref/pstm.cxx
index a91b078409cb..4956a6aa46f5 100644
--- a/tools/source/ref/pstm.cxx
+++ b/tools/source/ref/pstm.cxx
@@ -62,9 +62,6 @@ TYPEINIT0( SvRttiBase );
/****************** SvPersistBaseMemberList ******************************/
SvPersistBaseMemberList::SvPersistBaseMemberList(){}
-SvPersistBaseMemberList::SvPersistBaseMemberList(
- sal_uInt16 nInitSz, sal_uInt16 nResize )
- : SuperSvPersistBaseMemberList( nInitSz, nResize ){}
#define PERSIST_LIST_VER (sal_uInt8)0
#define PERSIST_LIST_DBGUTIL (sal_uInt8)0x80
@@ -200,44 +197,6 @@ SvPersistStream::SvPersistStream
}
//=========================================================================
-SvPersistStream::SvPersistStream
-(
- SvClassManager & rMgr, /* Alle Factorys, deren Objekt geladen und
- gespeichert werdn k"onnen */
- SvStream * pStream, /* Dieser Stream wird als Medium genommen, auf
- dem der PersistStream arbeitet */
- const SvPersistStream & rPersStm
- /* Wenn PersistStream's verschachtelt werden,
- dann ist dies der Parent-Stream. */
-)
- : rClassMgr( rMgr )
- , pStm( pStream )
- // Bereiche nicht ueberschneiden, deshalb nur groessere Indexe
- , aPUIdx( rPersStm.GetCurMaxIndex() +1 )
- , nStartIdx( rPersStm.GetCurMaxIndex() +1 )
- , pRefStm( &rPersStm )
- , nFlags( 0 )
-/* [Beschreibung]
-
- Der Konstruktor der Klasse SvPersistStream. Die Objekte rMgr und
- pStream d"urfen nicht ver"andert werden, solange sie in einem
- SvPersistStream eingesetzt sind. Eine Aussnahme gibt es f"ur
- pStream (siehe <SvPersistStream::SetStream>).
- Durch diesen Konstruktor wird eine Hierarchiebildung unterst"utzt.
- Alle Objekte aus einer Hierarchie m"ussen erst geladen werden,
- wenn das erste aus dieser Hierarchie benutzt werden soll.
-*/
-{
- bIsWritable = sal_True;
- if( pStm )
- {
- SetVersion( pStm->GetVersion() );
- SetError( pStm->GetError() );
- SyncSvStream( pStm->Tell() );
- }
-}
-
-//=========================================================================
SvPersistStream::~SvPersistStream()
/* [Beschreibung]
@@ -903,21 +862,4 @@ SvStream& operator >>
return rStm;
}
-//=========================================================================
-sal_uIntPtr SvPersistStream::InsertObj( SvPersistBase * pObj )
-{
- sal_uIntPtr nId = aPUIdx.Insert( pObj );
- aPTable.Insert( (sal_uIntPtr)pObj, (void *)nId );
- return nId;
-}
-
-//=========================================================================
-sal_uIntPtr SvPersistStream::RemoveObj( SvPersistBase * pObj )
-{
- sal_uIntPtr nIdx = GetIndex( pObj );
- aPUIdx.Remove( nIdx );
- aPTable.Remove( (sal_uIntPtr)pObj );
- return nIdx;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx
index ffb75a9f4bf4..6aedf2dd6064 100644
--- a/tools/source/stream/strmunx.cxx
+++ b/tools/source/stream/strmunx.cxx
@@ -592,17 +592,6 @@ sal_Bool SvFileStream::LockFile()
/*************************************************************************
|*
-|* SvFileStream::UnlockFile()
-|*
-*************************************************************************/
-
-sal_Bool SvFileStream::UnlockFile()
-{
- return UnlockRange( 0UL, 0UL );
-}
-
-/*************************************************************************
-|*
|* SvFileStream::Open()
|*
*************************************************************************/