diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-02-20 15:05:13 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-02-20 22:19:34 +0100 |
commit | e7e4871b2880f5690030b1b16978f2575eea3948 (patch) | |
tree | ea96b96dd53fcb36034b39b614ec40f08db73158 /tools | |
parent | 3ab04ef5528276682de8b8e91033bf81457d5a56 (diff) |
unusedcode.easy: some cleaning
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/fsys.hxx | 1 | ||||
-rw-r--r-- | tools/source/fsys/dirent.cxx | 25 |
2 files changed, 0 insertions, 26 deletions
diff --git a/tools/inc/tools/fsys.hxx b/tools/inc/tools/fsys.hxx index 6ad3de9889c2..42ddcab27bd5 100644 --- a/tools/inc/tools/fsys.hxx +++ b/tools/inc/tools/fsys.hxx @@ -270,7 +270,6 @@ public: inline const String GetNameDirect() const { return String(aName, osl_getThreadTextEncoding()); } String GetName( FSysPathStyle eFormatter = FSYS_STYLE_HOST ) const; String CutName( FSysPathStyle eFormatter = FSYS_STYLE_HOST ); - void SetBase( const String& rBase, char cSep = '.' ); String GetBase(char cSep = '.' ) const; DirEntry GetPath() const; DirEntry GetDevice() const; diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx index ca4bef080084..3018cf44ab1e 100644 --- a/tools/source/fsys/dirent.cxx +++ b/tools/source/fsys/dirent.cxx @@ -1534,31 +1534,6 @@ DirEntry DirEntry::GetDevice() const /************************************************************************* |* -|* DirEntry::SetBase() -|* -*************************************************************************/ - -void DirEntry::SetBase( const String& rBase, char cSep ) -{ - DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); - - const char *p0 = aName.getStr(); - const char *p1 = p0 + aName.getLength() - 1; - while ( p1 >= p0 && *p1 != cSep ) - p1--; - - if ( p1 >= p0 ) - { - // es wurde ein cSep an der Position p1 gefunden - aName = rtl::OUStringToOString(rBase, osl_getThreadTextEncoding()) - + aName.copy(p1 - p0); - } - else - aName = rtl::OUStringToOString(rBase, osl_getThreadTextEncoding()); -} - -/************************************************************************* -|* |* DirEntry::GetSearchDelimiter() |* *************************************************************************/ |