diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-05-24 21:44:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-05-24 21:44:03 +0100 |
commit | f6a80c4dee246bbe682d324339731c6e6e5740cb (patch) | |
tree | 059f5a6cd3c6fbba20564949113f57cf9fb392c4 | |
parent | 10cc02740dbcacfb4cf13f7b9fc71b25ef8e3777 (diff) |
getDirectoryPath is unused, see comphelper::LinkResolver if restored
-rw-r--r-- | basic/source/runtime/methods.cxx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 6da98356cf7e..13df6be64265 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -2443,39 +2443,6 @@ RTLFUNC(IsMissing) rPar.Get( 0 )->PutBool( rPar.Get(1)->IsErr() ); } -// Dir( [Maske] [,Attrs] ) -// ToDo: Library-globaler Datenbereich fuer Dir-Objekt und Flags - - -String getDirectoryPath( String aPathStr ) -{ - String aRetStr; - - DirectoryItem aItem; - FileBase::RC nRet = DirectoryItem::get( aPathStr, aItem ); - if( nRet == FileBase::E_None ) - { - FileStatus aFileStatus( osl_FileStatus_Mask_Type ); - nRet = aItem.getFileStatus( aFileStatus ); - if( nRet == FileBase::E_None ) - { - FileStatus::Type aType = aFileStatus.getFileType(); - if( isFolder( aType ) ) - { - aRetStr = aPathStr; - } - else if( aType == FileStatus::Link ) - { - FileStatus aFileStatus2( osl_FileStatus_Mask_LinkTargetURL ); - nRet = aItem.getFileStatus( aFileStatus2 ); - if( nRet == FileBase::E_None ) - aRetStr = getDirectoryPath( aFileStatus2.getLinkTargetURL() ); - } - } - } - return aRetStr; -} - // Function looks for wildcards, removes them and always returns the pure path String implSetupWildcard( const String& rFileParam, SbiRTLData* pRTLData ) { |