This is an automated email from the ASF dual-hosted git repository. jimjag pushed a commit to branch odf-devel in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit d6bbeb45004ae357426ed4a65be696dd20686bea Author: Jim Jagielski <[email protected]> AuthorDate: Wed Oct 28 13:00:07 2026 -0400 xmloff: remove unused redline successor exports code 218fb79f6b removed the only caller of ExportChangeInfo(Sequence<PropertyValue>). --- main/xmloff/source/text/XMLRedlineExport.cxx | 51 ---------------------------- main/xmloff/source/text/XMLRedlineExport.hxx | 6 ---- 2 files changed, 57 deletions(-) diff --git a/main/xmloff/source/text/XMLRedlineExport.cxx b/main/xmloff/source/text/XMLRedlineExport.cxx index fc527490e9..5c5991f711 100644 --- a/main/xmloff/source/text/XMLRedlineExport.cxx +++ b/main/xmloff/source/text/XMLRedlineExport.cxx @@ -76,7 +76,6 @@ XMLRedlineExport::XMLRedlineExport(SvXMLExport& rExp) , sRedlineAuthor(RTL_CONSTASCII_USTRINGPARAM("RedlineAuthor")) , sRedlineComment(RTL_CONSTASCII_USTRINGPARAM("RedlineComment")) , sRedlineDateTime(RTL_CONSTASCII_USTRINGPARAM("RedlineDateTime")) -, sRedlineSuccessorData(RTL_CONSTASCII_USTRINGPARAM("RedlineSuccessorData")) , sRedlineText(RTL_CONSTASCII_USTRINGPARAM("RedlineText")) , sRedlineType(RTL_CONSTASCII_USTRINGPARAM("RedlineType")) , sStyle(RTL_CONSTASCII_USTRINGPARAM("Style")) @@ -481,56 +480,6 @@ void XMLRedlineExport::ExportChangeInfo( WriteComment( sTmp ); } -void XMLRedlineExport::ExportChangeInfo( - const Sequence<PropertyValue> & rPropertyValues) -{ - OUString sComment; - - sal_Int32 nCount = rPropertyValues.getLength(); - for(sal_Int32 i = 0; i < nCount; i++) - { - const PropertyValue& rVal = rPropertyValues[i]; - - if( rVal.Name.equals(sRedlineAuthor) ) - { - OUString sTmp; - rVal.Value >>= sTmp; - if (sTmp.getLength() > 0) - { - rExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_CHG_AUTHOR, sTmp); - } - } - else if( rVal.Name.equals(sRedlineComment) ) - { - rVal.Value >>= sComment; - } - else if( rVal.Name.equals(sRedlineDateTime) ) - { - util::DateTime aDateTime; - rVal.Value >>= aDateTime; - OUStringBuffer sBuf; - rExport.GetMM100UnitConverter().convertDateTime(sBuf, aDateTime); - rExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_CHG_DATE_TIME, - sBuf.makeStringAndClear()); - } - else if( rVal.Name.equals(sRedlineType) ) - { - // check if this is an insertion; cf. comment at calling location - OUString sTmp; - rVal.Value >>= sTmp; - DBG_ASSERT(sTmp.equals(sInsert), - "hierarchical change must be insertion"); - } - // else: unknown value -> ignore - } - - // finally write element - SvXMLElementExport aChangeInfo(rExport, XML_NAMESPACE_OFFICE, - XML_CHANGE_INFO, sal_True, sal_True); - - WriteComment( sComment ); -} - void XMLRedlineExport::ExportStartOrEndRedline( const Reference<XPropertySet> & rPropSet, sal_Bool bStart) diff --git a/main/xmloff/source/text/XMLRedlineExport.hxx b/main/xmloff/source/text/XMLRedlineExport.hxx index 43fe319f30..f34e3e880f 100644 --- a/main/xmloff/source/text/XMLRedlineExport.hxx +++ b/main/xmloff/source/text/XMLRedlineExport.hxx @@ -73,7 +73,6 @@ class XMLRedlineExport const ::rtl::OUString sRedlineAuthor; const ::rtl::OUString sRedlineComment; const ::rtl::OUString sRedlineDateTime; - const ::rtl::OUString sRedlineSuccessorData; const ::rtl::OUString sRedlineText; const ::rtl::OUString sRedlineType; const ::rtl::OUString sStyle; @@ -188,11 +187,6 @@ private: const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> & rPropSet); - /// export an change-info element (from PropertyValues) - void ExportChangeInfo( - const ::com::sun::star::uno::Sequence< - ::com::sun::star::beans::PropertyValue> & rValues); - /// convert the change type from API to XML names const ::rtl::OUString ConvertTypeName(const ::rtl::OUString& sApiName);
