cid#1502949 Logically dead code

Change-Id: I259e105c73141744b667f8ab61fd61dac8e4ef9a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131500
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2022-03-13 11:46:34 +00:00
parent 0898179afc
commit d0a5d8429c

View file

@ -1921,25 +1921,18 @@ void DocxAttributeOutput::DoWriteMoveRangeTagStart(const OString & bookmarkName,
const DateTime aDateTime = pRedlineData->GetTimeStamp();
bool bNoDate = bRemovePersonalInfo ||
( aDateTime.GetYear() == 1970 && aDateTime.GetMonth() == 1 && aDateTime.GetDay() == 1 );
if ( bNoDate )
m_pSerializer->singleElementNS(XML_w, bFrom
? XML_moveFromRangeStart
: XML_moveToRangeStart,
FSNS(XML_w, XML_id), OString::number(m_nNextBookmarkId),
FSNS(XML_w, XML_author ), bRemovePersonalInfo
rtl::Reference<sax_fastparser::FastAttributeList> pAttributeList
= sax_fastparser::FastSerializerHelper::createAttrList();
pAttributeList->add(FSNS(XML_w, XML_id), OString::number(m_nNextBookmarkId));
pAttributeList->add(FSNS(XML_w, XML_author ), bRemovePersonalInfo
? "Author" + OString::number( GetExport().GetInfoID(rAuthor) )
: OUStringToOString(rAuthor, RTL_TEXTENCODING_UTF8),
FSNS(XML_w, XML_name), bookmarkName);
else
m_pSerializer->singleElementNS(XML_w, bFrom
? XML_moveFromRangeStart
: XML_moveToRangeStart,
FSNS(XML_w, XML_id), OString::number(m_nNextBookmarkId),
FSNS(XML_w, XML_author ), bRemovePersonalInfo
? "Author" + OString::number( GetExport().GetInfoID(rAuthor) )
: OUStringToOString(rAuthor, RTL_TEXTENCODING_UTF8),
FSNS(XML_w, XML_date ), DateTimeToOString( aDateTime ),
FSNS(XML_w, XML_name), bookmarkName);
: OUStringToOString(rAuthor, RTL_TEXTENCODING_UTF8));
if (!bNoDate)
pAttributeList->add(FSNS(XML_w, XML_date ), DateTimeToOString( aDateTime ));
pAttributeList->add(FSNS(XML_w, XML_name), bookmarkName);
m_pSerializer->singleElementNS( XML_w, bFrom ? XML_moveFromRangeStart : XML_moveToRangeStart, pAttributeList );
}
void DocxAttributeOutput::DoWriteMoveRangeTagEnd(sal_Int32 const nId, bool bFrom)