diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-01-05 23:10:03 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-01-06 16:01:06 +0200 |
commit | f3fa6d32e0698b99abfc00888a75590693e1d386 (patch) | |
tree | ebd79347bdabfada1b15f605d98cd34dd9e203a8 /vcl/ios/source | |
parent | 35b86ad73ccaf24377faaf0e73ead06ca2425b38 (diff) |
I don't think InitSalMain() needs to do anything on iOS
Change-Id: Ib59f9cf7c60796fd091de64fabdd6c10a3fec5e5
Diffstat (limited to 'vcl/ios/source')
-rw-r--r-- | vcl/ios/source/app/salinst.cxx | 41 |
1 files changed, 1 insertions, 40 deletions
diff --git a/vcl/ios/source/app/salinst.cxx b/vcl/ios/source/app/salinst.cxx index ed792db7fd29..0e5c69b52f58 100644 --- a/vcl/ios/source/app/salinst.cxx +++ b/vcl/ios/source/app/salinst.cxx @@ -173,46 +173,7 @@ void DeInitSalData() void InitSalMain() { - rtl::OUString urlWorkDir; - rtl_uString *sysWorkDir = NULL; - if (tools::getProcessWorkingDir(urlWorkDir)) - { - oslFileError err2 = osl_getSystemPathFromFileURL(urlWorkDir.pData, &sysWorkDir); - if (err2 == osl_File_E_None) - { - rtl::OString aPath( getenv( "PATH" ) ); - rtl::OString aResPath( getenv( "STAR_RESOURCEPATH" ) ); - rtl::OString aCmdPath( OUStringToOString(OUString(sysWorkDir), RTL_TEXTENCODING_UTF8).getStr() ); - rtl::OString aTmpPath; - // Get absolute path of command's directory - if ( !aCmdPath.isEmpty() ) - { - DirEntry aCmdDirEntry( aCmdPath ); - aCmdDirEntry.ToAbs(); - aCmdPath = rtl::OUStringToOString( aCmdDirEntry.GetPath().GetFull(), RTL_TEXTENCODING_ASCII_US ); - } - // Assign to PATH environment variable - if ( !aCmdPath.isEmpty() ) - { - aTmpPath = rtl::OString( "PATH=" ); - aTmpPath += aCmdPath; - if ( !aPath.isEmpty() ) - aTmpPath += rtl::OUStringToOString( DirEntry::GetSearchDelimiter(), RTL_TEXTENCODING_ASCII_US ); - aTmpPath += aPath; - putenv( (char*)aTmpPath.getStr() ); - } - // Assign to STAR_RESOURCEPATH environment variable - if ( !aCmdPath.isEmpty() ) - { - aTmpPath = rtl::OString( "STAR_RESOURCEPATH=" ); - aTmpPath += aCmdPath; - if ( !aResPath.isEmpty() ) - aTmpPath += rtl::OUStringToOString( DirEntry::GetSearchDelimiter(), RTL_TEXTENCODING_ASCII_US ); - aTmpPath += aResPath; - putenv( (char*)aTmpPath.getStr() ); - } - } - } + // I doubt anything is needed on iOS } // ----------------------------------------------------------------------- |