diff options
Diffstat (limited to 'sot')
-rw-r--r-- | sot/inc/sot/storage.hxx | 1 | ||||
-rw-r--r-- | sot/source/sdstor/stgcache.cxx | 5 | ||||
-rw-r--r-- | sot/source/sdstor/stgcache.hxx | 1 | ||||
-rw-r--r-- | sot/source/sdstor/ucbstorage.cxx | 54 |
4 files changed, 0 insertions, 61 deletions
diff --git a/sot/inc/sot/storage.hxx b/sot/inc/sot/storage.hxx index 7f975661fb78..33fb03028283 100644 --- a/sot/inc/sot/storage.hxx +++ b/sot/inc/sot/storage.hxx @@ -212,7 +212,6 @@ public: sal_Bool SetProperty( const String& rName, const ::com::sun::star::uno::Any& rValue ); sal_Bool GetProperty( const String& rName, ::com::sun::star::uno::Any& rValue ); - sal_Bool GetProperty( const String& rEleName, const String& rName, ::com::sun::star::uno::Any& rValue ); sal_Bool IsOLEStorage() const; static sal_Bool IsOLEStorage( const String & rFileName ); static sal_Bool IsOLEStorage( SvStream* pStream ); diff --git a/sot/source/sdstor/stgcache.cxx b/sot/source/sdstor/stgcache.cxx index 403dabee7413..cf6f8cbaf699 100644 --- a/sot/source/sdstor/stgcache.cxx +++ b/sot/source/sdstor/stgcache.cxx @@ -544,9 +544,4 @@ sal_Int32 StgCache::Page2Pos( sal_Int32 nPage ) return( nPage * nPageSize ) + nPageSize; } -sal_Int32 StgCache::Pos2Page( sal_Int32 nPos ) -{ - return ( ( nPos + nPageSize - 1 ) / nPageSize ) * nPageSize - 1; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sot/source/sdstor/stgcache.hxx b/sot/source/sdstor/stgcache.hxx index cad4e7e208f5..517e27a04c3c 100644 --- a/sot/source/sdstor/stgcache.hxx +++ b/sot/source/sdstor/stgcache.hxx @@ -50,7 +50,6 @@ protected: sal_Bool bMyStream; // sal_True: delete stream in dtor sal_Bool bFile; // sal_True: file stream sal_Int32 Page2Pos( sal_Int32 ); // page address --> file position - sal_Int32 Pos2Page( sal_Int32 ); // file position --> page address public: StgCache(); ~StgCache(); diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index 86f17ed6eba2..46fb25ea1a20 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -3380,58 +3380,4 @@ sal_Bool UCBStorage::GetProperty( const String& rName, ::com::sun::star::uno::An return sal_False; } -sal_Bool UCBStorage::GetProperty( const String& rEleName, const String& rName, ::com::sun::star::uno::Any& rValue ) -{ - UCBStorageElement_Impl *pEle = FindElement_Impl( rEleName ); - if ( !pEle ) - return sal_False; - - if ( !pEle->m_bIsFolder ) - { - if ( !pEle->m_xStream.Is() ) - pImp->OpenStream( pEle, pImp->m_nMode, pImp->m_bDirect ); - if ( pEle->m_xStream->m_nError ) - { - pEle->m_xStream.Clear(); - return sal_False; - } - - try - { - if ( pEle->m_xStream->m_pContent ) - { - rValue = pEle->m_xStream->m_pContent->getPropertyValue( rName ); - return sal_True; - } - } - catch (const Exception&) - { - } - } - else - { - if ( !pEle->m_xStorage.Is() ) - pImp->OpenStorage( pEle, pImp->m_nMode, pImp->m_bDirect ); - if ( pEle->m_xStorage->m_nError ) - { - pEle->m_xStorage.Clear(); - return sal_False; - } - - try - { - if ( pEle->m_xStorage->GetContent() ) - { - rValue = pEle->m_xStorage->m_pContent->getPropertyValue( rName ); - return sal_True; - } - } - catch (const Exception&) - { - } - } - - return sal_False; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |