summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-04 16:28:49 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-08-05 09:39:22 +0000
commit403c13487c36f4200adf0986c5d11398f719cd7a (patch)
tree21a4acf87dce1e6c8772f5cbcff3c2a3de21f4ba /sot
parent10560949f90e08fe4a04dd91c7d388c4998100e8 (diff)
loplugin:unusedmethods
Change-Id: I6801618efb5a66d24156fa429e026acb6ca03aba Reviewed-on: https://gerrit.libreoffice.org/17506 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sot')
-rw-r--r--sot/source/base/object.cxx9
-rw-r--r--sot/source/sdstor/stgavl.cxx13
-rw-r--r--sot/source/sdstor/stgavl.hxx1
-rw-r--r--sot/source/sdstor/stgdir.cxx23
-rw-r--r--sot/source/sdstor/stgdir.hxx1
-rw-r--r--sot/source/sdstor/storage.cxx20
6 files changed, 0 insertions, 67 deletions
diff --git a/sot/source/base/object.cxx b/sot/source/base/object.cxx
index 1cb951b3fbfc..88e457e4bd8e 100644
--- a/sot/source/base/object.cxx
+++ b/sot/source/base/object.cxx
@@ -42,15 +42,6 @@ SotFactory * SotObject::ClassFactory()
return *ppFactory;
}
-void * SotObject::CreateInstance( SotObject ** ppObj )
-{
- SotObject * p = new SotObject();
- if( ppObj )
- *ppObj = p;
- return p;
-}
-
-
void * SotObject::Cast( const SotFactory * pFact )
{
void * pRet = NULL;
diff --git a/sot/source/sdstor/stgavl.cxx b/sot/source/sdstor/stgavl.cxx
index 0b6e20bb3e6a..be26ac00f909 100644
--- a/sot/source/sdstor/stgavl.cxx
+++ b/sot/source/sdstor/stgavl.cxx
@@ -365,20 +365,7 @@ bool StgAvlNode::Remove( StgAvlNode** pRoot, StgAvlNode* pDel, bool bDel )
// Move node to a different tree. Returns true is found and moved. This routine
// may be called when the key has changed.
-bool StgAvlNode::Move( StgAvlNode** pRoot1, StgAvlNode** pRoot2, StgAvlNode* pMove )
-{
- if ( !pRoot1 )
- return false;
- // special case - empty tree
- if( *pRoot1 == NULL )
- return false;
- pMove = Rem( pRoot1, pMove, false );
- if( pMove )
- return Insert( pRoot2, pMove );
- else
- return false;
-}
////////////////////////// class AvlIterator
diff --git a/sot/source/sdstor/stgavl.hxx b/sot/source/sdstor/stgavl.hxx
index c59d25af82a9..ad3d44d870ac 100644
--- a/sot/source/sdstor/stgavl.hxx
+++ b/sot/source/sdstor/stgavl.hxx
@@ -45,7 +45,6 @@ public:
StgAvlNode* Find( StgAvlNode* );
static bool Insert( StgAvlNode**, StgAvlNode* );
static bool Remove( StgAvlNode**, StgAvlNode*, bool bDel = true );
- static bool Move( StgAvlNode**, StgAvlNode**, StgAvlNode* );
virtual short Compare( const StgAvlNode* ) const = 0;
};
diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx
index cb88ca5def0f..8af41b05bd1b 100644
--- a/sot/source/sdstor/stgdir.cxx
+++ b/sot/source/sdstor/stgdir.cxx
@@ -985,27 +985,4 @@ StgDirEntry* StgDirStrm::Create( StgDirEntry& rStg, const OUString& rName, StgEn
return pRes;
}
-// Rename the given entry.
-
-bool StgDirStrm::Rename( StgDirEntry& rStg, const OUString& rOld, const OUString& rNew )
-{
- StgDirEntry* p = Find( rStg, rOld );
- if( p )
- {
-
- if( !StgAvlNode::Remove( reinterpret_cast<StgAvlNode**>(&rStg.pDown), p, false ) )
- return false;
- p->aEntry.SetName( rNew );
- if( !StgAvlNode::Insert( reinterpret_cast<StgAvlNode**>(&rStg.pDown), p ) )
- return false;
- p->bRenamed = p->bDirty = true;
- return true;
- }
- else
- {
- rIo.SetError( SVSTREAM_FILE_NOT_FOUND );
- return false;
- }
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sot/source/sdstor/stgdir.hxx b/sot/source/sdstor/stgdir.hxx
index e8c3ec7acb90..d810b6d9397f 100644
--- a/sot/source/sdstor/stgdir.hxx
+++ b/sot/source/sdstor/stgdir.hxx
@@ -103,7 +103,6 @@ public:
StgDirEntry* GetRoot() { return pRoot; }
StgDirEntry* Find( StgDirEntry&, const OUString& );
StgDirEntry* Create( StgDirEntry&, const OUString&, StgEntryType );
- bool Rename( StgDirEntry&, const OUString&, const OUString& );
};
class StgIterator : public StgAvlIterator
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx
index 70dd249b7a2d..00a4801d0778 100644
--- a/sot/source/sdstor/storage.cxx
+++ b/sot/source/sdstor/storage.cxx
@@ -64,16 +64,6 @@ SotFactory * SotStorageStream::ClassFactory()
return *ppFactory;
}
-void * SotStorageStream::CreateInstance( SotObject ** ppObj )
-{
- SotStorageStream * p = new SotStorageStream();
- SotObject* pSuper1 = p;
- SotObject* pBasicObj = pSuper1;
- if( ppObj )
- *ppObj = pBasicObj;
- return p;
-}
-
void * SotStorageStream::Cast( const SotFactory * pFact )
{
void * pRet = NULL;
@@ -323,16 +313,6 @@ SotFactory * SotStorage::ClassFactory()
return *ppFactory;
}
-void * SotStorage::CreateInstance( SotObject ** ppObj )
-{
- SotStorage * p = new SotStorage();
- SotObject* pSuper1 = p;
- SotObject* pBasicObj = pSuper1;
- if( ppObj )
- *ppObj = pBasicObj;
- return p;
-}
-
void * SotStorage::Cast( const SotFactory * pFact )
{
void * pRet = NULL;