From 22ab4ba583db63aae81daf33db8994b58b4faa0c Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Thu, 12 Aug 2004 11:24:45 +0000 Subject: [PATCH] INTEGRATION: CWS tune05 (1.23.256); FILE MERGED 2004/07/22 08:35:45 cmc 1.23.256.1: #i30554# SwAuthorityFieldType::RemoveUnusedFields unused --- sw/source/core/fields/authfld.cxx | 36 ++----------------------------- 1 file changed, 2 insertions(+), 34 deletions(-) diff --git a/sw/source/core/fields/authfld.cxx b/sw/source/core/fields/authfld.cxx index 5fbf16b2363a..f1fa7a641f68 100644 --- a/sw/source/core/fields/authfld.cxx +++ b/sw/source/core/fields/authfld.cxx @@ -2,9 +2,9 @@ * * $RCSfile: authfld.cxx,v $ * - * $Revision: 1.23 $ + * $Revision: 1.24 $ * - * last change: $Author: rt $ $Date: 2003-12-01 17:17:00 $ + * last change: $Author: obo $ $Date: 2004-08-12 12:24:45 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -424,38 +424,6 @@ USHORT SwAuthorityFieldType::AppendField( const SwAuthEntry& rInsert ) return nRet; } -/*-- 11.10.99 08:49:23--------------------------------------------------- - - -----------------------------------------------------------------------*/ -void SwAuthorityFieldType::MergeFieldType( const SwAuthorityFieldType& rNew, - SvUShorts& rMap ) -{ - DBG_ASSERT( !rMap.Count(), "array not empty!") - for( USHORT i = 0; i < rNew.m_pDataArr->Count(); ++i ) - { - USHORT nNewPos = AppendField(*rNew.m_pDataArr->GetObject(i)); - rMap.Insert(nNewPos, i); - } -} - -/*-- 11.10.99 08:49:23--------------------------------------------------- - Description: After import is done some of the array members may have a - - -----------------------------------------------------------------------*/ -void SwAuthorityFieldType::RemoveUnusedFields() -{ - for( USHORT j = m_pDataArr->Count(); j; ) - { - SwAuthEntry* pTemp = m_pDataArr->GetObject( --j ); - if( !pTemp->GetRefCount() ) - { - m_pDataArr->Remove( j ); - delete pTemp; - } - } - DelSequenceArray(); -} - /*-- 11.10.99 08:49:24--------------------------------------------------- -----------------------------------------------------------------------*/