diff options
-rw-r--r-- | tools/inc/tools/tempfile.hxx | 7 | ||||
-rw-r--r-- | tools/source/fsys/tempfile.cxx | 22 |
2 files changed, 0 insertions, 29 deletions
diff --git a/tools/inc/tools/tempfile.hxx b/tools/inc/tools/tempfile.hxx index d81914e1f0e7..4ca220462898 100644 --- a/tools/inc/tools/tempfile.hxx +++ b/tools/inc/tools/tempfile.hxx @@ -65,13 +65,6 @@ public: // Only create a name for a temporary file that would be valid at that moment. static String CreateTempName( const String* pParent=NULL ); - - // The TempNameBase is a folder in the default ( system ) tempfile folder. - // This subfolder will be used if a TempFile or TempName is created without a parent name. - // The caller of the SetTempNameBase is responsible for deleting this folder and all temporary files in it. - // The argument must be a simple name, not a complete URL. - // The return value of both methods is the complete URL of the tempname base folder. - static String SetTempNameBaseDirectory( const String &rBaseName ); }; #endif diff --git a/tools/source/fsys/tempfile.cxx b/tools/source/fsys/tempfile.cxx index b859fa9ab1e3..b6a4b1e2b70e 100644 --- a/tools/source/fsys/tempfile.cxx +++ b/tools/source/fsys/tempfile.cxx @@ -267,26 +267,4 @@ String TempFile::GetName() const return aTmp; } -String TempFile::SetTempNameBaseDirectory( const String &rBaseName ) -{ - String aName( rBaseName ); - - ::rtl::OUString& rTempNameBase_Impl = TempNameBase_Impl::get(); - - FileBase::RC err= Directory::create( aName ); - if ( err == FileBase::E_None || err == FileBase::E_EXIST ) - { - rTempNameBase_Impl = aName; - rTempNameBase_Impl += String( '/' ); - - TempFile aBase( NULL, sal_True ); - if ( aBase.IsValid() ) - rTempNameBase_Impl = aBase.pImp->aName; - } - - rtl::OUString aTmp; - aTmp = rTempNameBase_Impl; - return aTmp; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |