summaryrefslogtreecommitdiff
path: root/desktop/source/app/appinit.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/app/appinit.cxx')
-rw-r--r--desktop/source/app/appinit.cxx15
1 files changed, 1 insertions, 14 deletions
diff --git a/desktop/source/app/appinit.cxx b/desktop/source/app/appinit.cxx
index d16cdcc82cd2..c8d78cbf66ab 100644
--- a/desktop/source/app/appinit.cxx
+++ b/desktop/source/app/appinit.cxx
@@ -54,7 +54,6 @@
#include <unotools/tempfile.hxx>
#include <vcl/svapp.hxx>
#include <unotools/pathoptions.hxx>
-#include <unotools/internaloptions.hxx>
using namespace desktop;
@@ -277,21 +276,11 @@ void Desktop::CreateTemporaryDirectory()
throw;
}
- // remove possible old directory and base directory
- SvtInternalOptions aInternalOpt;
-
// set temp base directory
sal_Int32 nLength = aTempBaseURL.getLength();
if ( aTempBaseURL.matchAsciiL( "/", 1, nLength-1 ) )
aTempBaseURL = aTempBaseURL.copy( 0, nLength - 1 );
- String aOldTempURL = aInternalOpt.GetCurrentTempURL();
- if ( aOldTempURL.Len() > 0 )
- {
- // remove old temporary directory
- ::utl::UCBContentHelper::Kill( aOldTempURL );
- }
-
::rtl::OUString aRet;
::rtl::OUString aTempPath( aTempBaseURL );
@@ -314,7 +303,6 @@ void Desktop::CreateTemporaryDirectory()
// set new current temporary directory
::utl::LocalFileHelper::ConvertPhysicalNameToURL( aTempPath, aRet );
- aInternalOpt.SetCurrentTempURL( aRet );
CurrentTempURL::get() = aRet;
}
@@ -326,8 +314,7 @@ void Desktop::RemoveTemporaryDirectory()
String &rCurrentTempURL = CurrentTempURL::get();
if ( rCurrentTempURL.Len() > 0 )
{
- if ( ::utl::UCBContentHelper::Kill( rCurrentTempURL ) )
- SvtInternalOptions().SetCurrentTempURL( String() );
+ ::utl::UCBContentHelper::Kill( rCurrentTempURL );
}
}