diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-07-26 23:32:40 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-07-26 23:39:04 +0200 |
commit | bf2373daf50595c02741f63d941fda0462535d62 (patch) | |
tree | 8648bb9d6328a43d5c1e52ca2169097ada413251 /tools/source | |
parent | bb4b28f3642e6fd86881c0fd4c030b5872cde7fa (diff) |
callcatcher: remove unused methods
Diffstat (limited to 'tools/source')
-rw-r--r-- | tools/source/fsys/tdir.cxx | 109 | ||||
-rw-r--r-- | tools/source/generic/b3dtrans.cxx | 14 | ||||
-rw-r--r-- | tools/source/generic/config.cxx | 64 |
3 files changed, 1 insertions, 186 deletions
diff --git a/tools/source/fsys/tdir.cxx b/tools/source/fsys/tdir.cxx index db811f35e76b..d500a3896de7 100644 --- a/tools/source/fsys/tdir.cxx +++ b/tools/source/fsys/tdir.cxx @@ -439,115 +439,6 @@ Dir::~Dir() /************************************************************************* |* -|* Dir::ImpSetSort() -|* -*************************************************************************/ - -FSysError Dir::ImpSetSort( std::va_list pArgs, int nFirstSort ) -{ - sal_Bool bLast; - FSysSort aSort; - FSysSortList *pNewSortLst = new FSysSortList; - - aSort = nFirstSort; - do - { - // letztes Kriterium? - bLast = FSYS_SORT_END == (aSort & FSYS_SORT_END); - aSort &= ~FSYS_SORT_END; - - FSysSort nSort = aSort & ~(sal_uInt16)FSYS_SORT_ASCENDING - & ~(sal_uInt16)FSYS_SORT_DESCENDING; - - // g"utliges Sortierkriterium? - if ( ( nSort == FSYS_SORT_NAME ) || - ( nSort == FSYS_SORT_SIZE ) || - ( nSort == FSYS_SORT_EXT ) || - ( nSort == FSYS_SORT_CREATED ) || - ( nSort == FSYS_SORT_MODIFYED ) || - ( nSort == FSYS_SORT_ACCESSED ) || - ( nSort == FSYS_SORT_KIND ) ) - { - pNewSortLst->push_back( aSort ); - aSort = va_arg( pArgs, FSysSort ); - } - else - { // ungueltiger Sort oder FSYS_SORT_NONE - pNewSortLst->clear(); - delete pNewSortLst; - if ( aSort == FSYS_SORT_NONE ) - { - if ( pSortLst ) { - delete pSortLst; - pSortLst = NULL; - } - return FSYS_ERR_OK; - } - else - { - return FSYS_ERR_NOTSUPPORTED; - } - } - } while ( !bLast ); - - va_end( pArgs ); - - //Enfernen der alten Sort-Elemente - if ( pSortLst ) - { - pSortLst->clear(); - delete pSortLst; - } - pSortLst = pNewSortLst; - - //Jetzt noch neu Sortieren... - - //Wenn keine FileStats da sind, aber nun welche gebraucht werden, - //ist der Aufruf von Update() die einfachste Moeglichkeit - if ( !pStatLst && pSortLst ) - { - for ( size_t i = 0, n = pSortLst->size(); i < n && !pStatLst; ++i ) - { - if ( (*pSortLst)[ i ] - & ( FSYS_SORT_CREATED | FSYS_SORT_MODIFYED | FSYS_SORT_SIZE - | FSYS_SORT_ACCESSED | FSYS_SORT_KIND - ) - ) { - Update(); - return FSYS_ERR_OK; - } - } - } - - if ( pLst ) { //Keine DirEntry's, kein Sort. - DirEntryList *pOldLst = pLst; //alte Liste merken - pLst = new DirEntryList(); //neue Liste (zu Sortieren) - - FileStatList *pOldStatLst = NULL; //alte StatListe merken - if ( pStatLst ) { - pOldStatLst = pStatLst; - pStatLst = new FileStatList(); //neue StatListe (zu Sortieren) - } - - for ( size_t i = 0, n = pOldLst->size(); i < n; ++i ) - { - //Sortiertes Einfuegen der Elemente aus den gemerkten Listen - //in die 'richtigen' Listen - if ( pOldStatLst ) - ImpSortedInsert( (*pOldLst)[ i ], (*pOldStatLst)[ i ] ); - else - ImpSortedInsert( (*pOldLst)[ i ], NULL ); - } - - delete pOldLst; - if ( pOldStatLst ) - delete pOldStatLst; - } - return FSYS_ERR_OK; -} - -/************************************************************************* -|* |* Dir::operator[]() |* *************************************************************************/ diff --git a/tools/source/generic/b3dtrans.cxx b/tools/source/generic/b3dtrans.cxx index 7a086f5a6166..de642ed941b2 100644 --- a/tools/source/generic/b3dtrans.cxx +++ b/tools/source/generic/b3dtrans.cxx @@ -433,20 +433,6 @@ void B3dTransformationSet::PostSetViewport() { } -const basegfx::B3DVector& B3dTransformationSet::GetScale() -{ - if(!mbProjectionValid) - CalcViewport(); - return maScale; -} - -const basegfx::B3DVector& B3dTransformationSet::GetTranslate() -{ - if(!mbProjectionValid) - CalcViewport(); - return maTranslate; -} - /************************************************************************* |* |* Direkter Zugriff auf verschiedene Transformationen diff --git a/tools/source/generic/config.cxx b/tools/source/generic/config.cxx index 2075bf49e300..7df9dd8b2c52 100644 --- a/tools/source/generic/config.cxx +++ b/tools/source/generic/config.cxx @@ -726,7 +726,7 @@ sal_Bool Config::ImplUpdateConfig() const return sal_False; } -// ----------------------------------------------------------------------- +// ======================================================================= ImplGroupData* Config::ImplGetGroup() const { @@ -769,23 +769,6 @@ ImplGroupData* Config::ImplGetGroup() const // ======================================================================= -Config::Config() -{ - // Daten initialisieren und einlesen - maFileName = ImplMakeConfigName( NULL, NULL ); - mpData = ImplGetConfigData( maFileName ); - mpActGroup = NULL; - mnDataUpdateId = 0; - mnLockCount = 1; - mbPersistence = sal_True; - -#ifdef DBG_UTIL - OSL_TRACE( "Config::Config()" ); -#endif -} - -// ----------------------------------------------------------------------- - Config::Config( const XubString& rFileName ) { // Daten initialisieren und einlesen @@ -1258,55 +1241,10 @@ ByteString Config::ReadKey( sal_uInt16 nKey ) const return getEmptyByteString(); } -// ----------------------------------------------------------------------- - -void Config::EnterLock() -{ - // Config-Daten evt. updaten - if ( !mnLockCount ) - ImplUpdateConfig(); - - mnLockCount++; -} - -// ----------------------------------------------------------------------- - -void Config::LeaveLock() -{ - DBG_ASSERT( mnLockCount, "Config::LeaveLook() without Config::EnterLook()" ); - mnLockCount--; - - if ( (mnLockCount == 0) && mpData->mbModified && mbPersistence ) - ImplWriteConfig( mpData ); -} - -// ----------------------------------------------------------------------- - -sal_Bool Config::Update() -{ - return ImplUpdateConfig(); -} - -// ----------------------------------------------------------------------- - void Config::Flush() { if ( mpData->mbModified && mbPersistence ) ImplWriteConfig( mpData ); } -// ----------------------------------------------------------------------- - -void Config::SetLineEnd( LineEnd eLineEnd ) -{ - mpData->meLineEnd = eLineEnd; -} - -// ----------------------------------------------------------------------- - -LineEnd Config::GetLineEnd() const -{ - return mpData->meLineEnd; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |