[Libreoffice-commits] .: tools/inc tools/source

François Tigeot ftigeot at kemper.freedesktop.org
Sun May 1 12:40:23 PDT 2011


 tools/inc/tools/fsys.hxx     |    4 -
 tools/source/fsys/dirent.cxx |   94 -------------------------------------------
 2 files changed, 98 deletions(-)

New commits:
commit b968d263d8d0c3667bde1feb76f79db8a605f5b2
Author: Francois Tigeot <ftigeot at wolfpond.org>
Date:   Sun May 1 18:40:50 2011 +0200

    Remove more DirEntry unused functions

diff --git a/tools/inc/tools/fsys.hxx b/tools/inc/tools/fsys.hxx
index 87630be..47ce264 100644
--- a/tools/inc/tools/fsys.hxx
+++ b/tools/inc/tools/fsys.hxx
@@ -330,7 +330,6 @@ public:
     sal_Bool				Find( const String& rPfad, char cDelim = 0 );
     sal_Bool				ToRel();
     sal_Bool				ToRel( const DirEntry& rRefDir );
-    sal_uInt16				CutRelParents();
 
     sal_Bool				SetCWD( sal_Bool bSloppy = sal_False ) const;
     sal_Bool				MakeDir( sal_Bool bSloppy = sal_False ) const;
@@ -365,10 +364,7 @@ public:
 
     static String		GetAccessDelimiter( FSysPathStyle eFormatter = FSYS_STYLE_HOST );
     static String		GetSearchDelimiter( FSysPathStyle eFormatter = FSYS_STYLE_HOST );
-    static sal_uInt16		GetMaxNameLen( FSysPathStyle eFormatter = FSYS_STYLE_HOST );
     static FSysPathStyle GetPathStyle( const String &rDevice );
-    static String		ConvertNameToSystem( const String & rName );
-    static String		ConvertSystemToName( const String & rName );
 };
 
 // --------------
diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx
index 642f05e..a557edb 100644
--- a/tools/source/fsys/dirent.cxx
+++ b/tools/source/fsys/dirent.cxx
@@ -1709,42 +1709,6 @@ sal_Bool DirEntry::ImpToRel( String aCurStr )
 
 /*************************************************************************
 |*
-|*    DirEntry::CutRelParents()
-|*
-*************************************************************************/
-
-sal_uInt16 DirEntry::CutRelParents()
-{
-    DBG_CHKTHIS( DirEntry, ImpCheckDirEntry );
-
-        // erstes '..' finden
-    DirEntry *pDir = 0;
-    DirEntry *pPar;
-
-    for (  pPar = this;
-          pPar && pPar->eFlag != FSYS_FLAG_PARENT;
-          pPar = pPar->pParent )
-        pDir = pPar;
-
-    // '..' zaehlen
-    sal_uInt16 nParCount = 0;
-    while ( pPar && pPar->eFlag == FSYS_FLAG_PARENT )
-    {
-        ++nParCount;
-        pPar = pPar->pParent;
-    }
-
-    // cutten
-    if ( pDir )
-        DELETEZ(pDir->pParent);
-    else
-        eFlag = FSYS_FLAG_CURRENT;
-
-    return nParCount;
-}
-
-/*************************************************************************
-|*
 |*    DirEntry::ToRel()
 |*
 *************************************************************************/
@@ -1834,42 +1798,6 @@ String DirEntry::GetSearchDelimiter( FSysPathStyle eFormatter )
 
 /*************************************************************************
 |*
-|*    DirEntry::GetMaxNameLen()
-|*
-|*    Beschreibung      Liefert die maximale Anzahl von Zeichen in
-|*                      einzelnen Namensteile. Bei FileSystmen mit
-|*                      fester Extension (FAT) zaehlt diese nicht mit.
-|*                      Bei unbekannten FileSytemen und FSYS_STYLE_URL
-|*                      wird USHRT_MAX zurueckgegeben.
-|*
-*************************************************************************/
-
-sal_uInt16 DirEntry::GetMaxNameLen( FSysPathStyle eFormatter )
-{
-    eFormatter = GetStyle( eFormatter );
-    switch ( eFormatter )
-    {
-        case FSYS_STYLE_MAC:    return  31;
-
-        case FSYS_STYLE_FAT:    return   8;
-
-        case FSYS_STYLE_VFAT:
-        case FSYS_STYLE_NTFS:
-        case FSYS_STYLE_NWFS:
-        case FSYS_STYLE_HPFS:   return 255;
-
-
-        case FSYS_STYLE_SYSV:   return  14;
-
-        case FSYS_STYLE_BSD:    return 250;
-
-        default:
-            return USHRT_MAX;
-    }
-}
-
-/*************************************************************************
-|*
 |*    DirEntry::TempName()
 |*
 |*    Beschreibung      FSYS.SDW - Aha, wo?
@@ -2851,28 +2779,6 @@ sal_uInt16 DirEntry::Level() const
 
 /*************************************************************************
 |*
-|*    DirEntry::ConvertNameToSystem()
-|*
-*************************************************************************/
-
-String DirEntry::ConvertNameToSystem( const String &rName )
-{
-    return rName;
-}
-
-/*************************************************************************
-|*
-|*    DirEntry::ConvertSystemToName()
-|*
-*************************************************************************/
-
-String DirEntry::ConvertSystemToName( const String &rName )
-{
-    return rName;
-}
-
-/*************************************************************************
-|*
 |*    DirEntry::IsValid()
 |*
 *************************************************************************/


More information about the Libreoffice-commits mailing list