summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
Diffstat (limited to 'sot')
-rw-r--r--sot/inc/sot/stg.hxx1
-rw-r--r--sot/source/sdstor/ucbstorage.cxx17
2 files changed, 0 insertions, 18 deletions
diff --git a/sot/inc/sot/stg.hxx b/sot/inc/sot/stg.hxx
index cb447e3261b8..793ee0e41340 100644
--- a/sot/inc/sot/stg.hxx
+++ b/sot/inc/sot/stg.hxx
@@ -296,7 +296,6 @@ protected:
~UCBStorage();
public:
static sal_Bool IsStorageFile( SvStream* );
- static sal_Bool IsStorageFile( const String& rName );
static sal_Bool IsDiskSpannedFile( SvStream* );
static String GetLinkedFile( SvStream& );
static String CreateLinkFile( const String& rName );
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index e82d7b3dff32..4899aa01a441 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -3203,23 +3203,6 @@ sal_Bool UCBStorage::Equals( const BaseStorage& rStorage ) const
return ((BaseStorage*)this) == &rStorage;
}
-sal_Bool UCBStorage::IsStorageFile( const String& rFileName )
-{
- rtl::OUString aFileURL = rFileName;
- INetURLObject aObj( aFileURL );
- if ( aObj.GetProtocol() == INET_PROT_NOT_VALID )
- {
- ::utl::LocalFileHelper::ConvertPhysicalNameToURL( rFileName, aFileURL );
- aObj.SetURL( aFileURL );
- aFileURL = aObj.GetMainURL( INetURLObject::NO_DECODE );
- }
-
- SvStream * pStm = ::utl::UcbStreamHelper::CreateStream( aFileURL, STREAM_STD_READ );
- sal_Bool bRet = UCBStorage::IsStorageFile( pStm );
- delete pStm;
- return bRet;
-}
-
sal_Bool UCBStorage::IsStorageFile( SvStream* pFile )
{
if ( !pFile )