summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-02-15 00:56:25 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-02-15 13:27:11 +0100
commitd5303f2b25bf849fce2eda37f3f5082a18afe15c (patch)
tree38a71aca1cbd5d37da05d975f446d90e5ded3101 /linguistic
parentb9f4764a0c469852a6b3aa18a6b42aea115fcf85 (diff)
Remove TL_OUTDATED
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/inc/misc.hxx8
-rw-r--r--linguistic/source/misc2.cxx63
2 files changed, 0 insertions, 71 deletions
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 )