From d5303f2b25bf849fce2eda37f3f5082a18afe15c Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Tue, 15 Feb 2011 00:56:25 +0100 Subject: Remove TL_OUTDATED --- linguistic/inc/misc.hxx | 8 ------ linguistic/source/misc2.cxx | 63 --------------------------------------------- 2 files changed, 71 deletions(-) (limited to 'linguistic') diff --git a/linguistic/inc/misc.hxx b/linguistic/inc/misc.hxx index 9cdc8dffbc14..3a369e574217 100644 --- a/linguistic/inc/misc.hxx +++ b/linguistic/inc/misc.hxx @@ -147,14 +147,6 @@ BOOL IsReadOnly( const String &rURL, BOOL *pbExist = 0 ); // checks if a file with the given URL exists BOOL FileExists( const String &rURL ); -#ifdef TL_OUTDATED -// returns complete file URL for given filename that is to be searched in -// the specified path -String GetFileURL( SvtPathOptions::Pathes ePath, const String &rFileName ); - -String GetModulePath( SvtPathOptions::Pathes ePath, BOOL bAddAccessDelim = TRUE ); -#endif - /////////////////////////////////////////////////////////////////////////// ::rtl::OUString GetDictionaryWriteablePath(); diff --git a/linguistic/source/misc2.cxx b/linguistic/source/misc2.cxx index 82d77181ba83..d6b83a9ceca2 100644 --- a/linguistic/source/misc2.cxx +++ b/linguistic/source/misc2.cxx @@ -72,69 +72,6 @@ BOOL FileExists( const String &rMainURL ) return bExists; } - -#ifdef TL_OUTDATED - -String GetFileURL( SvtPathOptions::Pathes ePath, const String &rFileName ) -{ - String aURL; - if (rFileName.Len()) - { - INetURLObject aURLObj; - aURLObj.SetSmartProtocol( INET_PROT_FILE ); - aURLObj.SetSmartURL( GetModulePath(ePath) ); - aURLObj.Append( rFileName ); - if (aURLObj.HasError()) - { - DBG_ASSERT(!aURLObj.HasError(), "lng : invalid URL"); - } - aURL = aURLObj.GetMainURL( INetURLObject::DECODE_TO_IURI ); - } - return aURL; -} - - -String GetModulePath( SvtPathOptions::Pathes ePath, BOOL bAddAccessDelim ) -{ - String aRes; - - SvtPathOptions aPathOpt; - switch (ePath) - { - case SvtPathOptions::PATH_MODULE : - aRes = aPathOpt.GetModulePath(); - break; - case SvtPathOptions::PATH_LINGUISTIC : - { - String aTmp( aPathOpt.GetLinguisticPath() ); - utl::LocalFileHelper::ConvertURLToPhysicalName( aTmp, aRes ); - break; - } -/* - case SvtPathOptions::PATH_USERDICTIONARY : - { - String aTmp( aPathOpt.GetUserDictionaryPath() ); - utl::LocalFileHelper::ConvertURLToPhysicalName( aTmp, aRes ); - break; - } -*/ - default: - DBG_ASSERT( 0, "unexpected argument (path)" ); - } - if (bAddAccessDelim && aRes.Len()) - { -#ifdef WNT - aRes += '\\'; -#else - aRes += '/'; -#endif - } - - return aRes; -} - -#endif - /////////////////////////////////////////////////////////////////////////// rtl::OUString StripTrailingChars( rtl::OUString &rTxt, sal_Unicode cChar ) -- cgit v1.2.3