remove unused SETBULLETTEXT flag in editeng

Already unused in initial import.

Change-Id: I423442a2b036c64727af608fa667f1f8a427391f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137542
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
This commit is contained in:
Justin Luth 2022-07-27 10:54:22 -04:00
parent d39a6726b8
commit 2b0626e2e9
3 changed files with 0 additions and 9 deletions

View file

@ -1492,8 +1492,6 @@ include/editeng/numitem.hxx:247
enum SvxNumRuleType OUTLINE_NUMBERING
include/editeng/numitem.hxx:248
enum SvxNumRuleType PRESENTATION_NUMBERING
include/editeng/outliner.hxx:99
enum ParaFlag SETBULLETTEXT
include/editeng/outliner.hxx:190
enum OutlinerView::MouseTarget Outside
include/editeng/svxrtf.hxx:207

View file

@ -123,7 +123,6 @@ void Outliner::ParagraphInserted( sal_Int32 nPara )
pParaList->Insert( std::unique_ptr<Paragraph>(pPara), nPara );
if( pEditEngine->IsInUndo() )
{
pPara->nFlags = ParaFlag::SETBULLETTEXT;
pPara->bVisible = true;
const SfxInt16Item& rLevel = pEditEngine->GetParaAttrib( nPara, EE_PARA_OUTLLEVEL );
pPara->SetDepth( rLevel.GetValue() );
@ -665,7 +664,6 @@ void Outliner::SetStyleSheet( sal_Int32 nPara, SfxStyleSheet* pStyle )
if (pPara)
{
pEditEngine->SetStyleSheet( nPara, pStyle );
pPara->nFlags |= ParaFlag::SETBULLETTEXT;
ImplCheckNumBulletItem( nPara );
}
}
@ -1837,8 +1835,6 @@ void Outliner::ImplCalcBulletText( sal_Int32 nPara, bool bRecalcLevel, bool bRec
if (pPara->GetText() != aBulletText)
pPara->SetText( aBulletText );
pPara->nFlags &= ~ParaFlag::SETBULLETTEXT;
if ( bRecalcLevel )
{
sal_Int16 nDepth = pPara->GetDepth();
@ -1897,8 +1893,6 @@ OUString Outliner::ImplGetBulletText( sal_Int32 nPara )
Paragraph* pPara = pParaList->GetParagraph( nPara );
if (pPara)
{
// Enable optimization again ...
// if( pPara->nFlags & ParaFlag::SETBULLETTEXT )
ImplCalcBulletText( nPara, false, false );
aRes = pPara->GetText();
}

View file

@ -96,7 +96,6 @@ enum class ParaFlag
{
NONE = 0x0000,
HOLDDEPTH = 0x4000,
SETBULLETTEXT = 0x8000,
ISPAGE = 0x0100,
};
namespace o3tl