diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-25 09:40:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-25 09:42:07 +0100 |
commit | 005f5d443e432130b902e1c78283c5f57f34d2b5 (patch) | |
tree | 6eb3f4607ffd07d06f197de6760201af07d9589c /xmloff | |
parent | String::CreateFromInt64->rtl::OUString::valueOf (diff) | |
download | core-005f5d443e432130b902e1c78283c5f57f34d2b5.tar.gz core-005f5d443e432130b902e1c78283c5f57f34d2b5.zip |
remove freshly unused methods
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/impastp4.cxx | 55 | ||||
-rw-r--r-- | xmloff/source/style/impastpl.hxx | 4 |
2 files changed, 0 insertions, 59 deletions
diff --git a/xmloff/source/style/impastp4.cxx b/xmloff/source/style/impastp4.cxx index d6032f54b4ce..cea98ddda481 100644 --- a/xmloff/source/style/impastp4.cxx +++ b/xmloff/source/style/impastp4.cxx @@ -267,29 +267,6 @@ sal_Bool SvXMLAutoStylePoolP_Impl::AddNamed(const OUString& rName, sal_Int32 nFa return bRet; } -OUString SvXMLAutoStylePoolP_Impl::AddToCache( sal_Int32 nFamily, - const OUString& rParent ) -{ - sal_uLong nPos; - - XMLFamilyData_Impl *pFamily = 0; - XMLFamilyData_Impl aTmp( nFamily ); - if( maFamilyList.Seek_Entry( &aTmp, &nPos ) ) - { - pFamily = maFamilyList.GetObject( nPos ); - } - - DBG_ASSERT( pFamily, "SvXMLAutoStylePool_Impl::Add: unknown family" ); - if( pFamily ) - { - if( !pFamily->pCache ) - pFamily->pCache = new SvXMLAutoStylePoolCache_Impl(); - if( pFamily->pCache->size() < MAX_CACHE_SIZE ) - pFamily->pCache->push_back( new OUString( rParent ) ); - } - - return rParent; -} /////////////////////////////////////////////////////////////////////////////// // // Search for a array of XMLPropertyState ( vector< XMLPropertyState > ) in list @@ -324,38 +301,6 @@ OUString SvXMLAutoStylePoolP_Impl::Find( sal_Int32 nFamily, return sName; } -OUString SvXMLAutoStylePoolP_Impl::FindAndRemoveCached( sal_Int32 nFamily ) const -{ - OUString sName; - - sal_uLong nPos; - XMLFamilyData_Impl aTmp( nFamily ); - XMLFamilyData_Impl *pFamily = 0; - if( maFamilyList.Seek_Entry( &aTmp, &nPos ) ) - { - pFamily = maFamilyList.GetObject( nPos ); - } - - DBG_ASSERT( pFamily, "SvXMLAutoStylePool_Impl::Find: unknown family" ); - - if( pFamily ) - { - DBG_ASSERT( pFamily->pCache, "family doesn't have a cache" ); - - // The cache may be empty already. This happens if it was filled - // completly. - if( pFamily->pCache && !pFamily->pCache->empty() ) - { - OUString *pName = (*pFamily->pCache)[ 0 ]; - pFamily->pCache->erase( pFamily->pCache->begin() ); - sName = *pName; - delete pName; - } - } - - return sName; -} - /////////////////////////////////////////////////////////////////////////////// // // export diff --git a/xmloff/source/style/impastpl.hxx b/xmloff/source/style/impastpl.hxx index 77597257803a..5225a4409358 100644 --- a/xmloff/source/style/impastpl.hxx +++ b/xmloff/source/style/impastpl.hxx @@ -200,13 +200,9 @@ public: const ::rtl::OUString& rParent, const ::std::vector< XMLPropertyState >& rProperties ); - ::rtl::OUString AddToCache( sal_Int32 nFamily, - const ::rtl::OUString& rParent ); ::rtl::OUString Find( sal_Int32 nFamily, const ::rtl::OUString& rParent, const ::std::vector< XMLPropertyState >& rProperties ) const; - ::rtl::OUString FindAndRemoveCached( sal_Int32 nFamily ) const; - void exportXML( sal_Int32 nFamily, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > & rHandler, const SvXMLUnitConverter& rUnitConverter, |