summaryrefslogtreecommitdiff
path: root/tools/source/fsys/tdir.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-07-26 23:32:40 +0200
committerThomas Arnhold <thomas@arnhold.org>2011-07-26 23:39:04 +0200
commitbf2373daf50595c02741f63d941fda0462535d62 (patch)
tree8648bb9d6328a43d5c1e52ca2169097ada413251 /tools/source/fsys/tdir.cxx
parentbb4b28f3642e6fd86881c0fd4c030b5872cde7fa (diff)
callcatcher: remove unused methods
Diffstat (limited to 'tools/source/fsys/tdir.cxx')
-rw-r--r--tools/source/fsys/tdir.cxx109
1 files changed, 0 insertions, 109 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[]()
|*
*************************************************************************/