[Libreoffice-commits] core.git: editeng/source
Chris Sherlock
chris.sherlock79 at gmail.com
Fri Feb 2 09:29:13 UTC 2018
editeng/source/accessibility/AccessibleContextBase.cxx | 12 ------------
editeng/source/outliner/outliner.cxx | 9 ---------
2 files changed, 21 deletions(-)
New commits:
commit 6bec9bf0f85ec3503c46d8abd4a93139b1856a18
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date: Sun Jan 7 00:18:21 2018 +1100
editeng: remove dead code
Change-Id: I2ce15bc2c6b9663b479ae98bb1d5e0900716adcf
Reviewed-on: https://gerrit.libreoffice.org/47492
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
diff --git a/editeng/source/accessibility/AccessibleContextBase.cxx b/editeng/source/accessibility/AccessibleContextBase.cxx
index 557f769b5b2d..8a0c8e4bfc6d 100644
--- a/editeng/source/accessibility/AccessibleContextBase.cxx
+++ b/editeng/source/accessibility/AccessibleContextBase.cxx
@@ -317,18 +317,6 @@ uno::Reference<XAccessibleStateSet> SAL_CALL
// Create a copy of the state set and return it.
pStateSet = static_cast< ::utl::AccessibleStateSetHelper*>(mxStateSet.get());
- // Merge current focused state from edit engine.
-#if 0
- if (aState == AccessibleStateType::FOCUSED
- && pStateSet != NULL
- && mpText != NULL)
- {
- if (mpText->GetFocusedState ())
- pStateSet->AddState (aState);
- else
- pStateSet->RemoveState (aState);
- }
-#endif
if (pStateSet != nullptr)
pStateSet = new ::utl::AccessibleStateSetHelper (*pStateSet);
}
diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx
index b6d5ac108ecc..f520239bf148 100644
--- a/editeng/source/outliner/outliner.cxx
+++ b/editeng/source/outliner/outliner.cxx
@@ -1368,15 +1368,6 @@ bool Outliner::HasChildren( Paragraph const * pParagraph ) const
bool Outliner::ImplHasNumberFormat( sal_Int32 nPara ) const
{
return GetNumberFormat(nPara) != nullptr;
-#if 0 // The below code is obviously unreachable
- if ( GetNumberFormat(nPara) )
- {
- const SfxBoolItem& rBulletState = (const SfxBoolItem&) pEditEngine->GetParaAttrib( nPara, EE_PARA_BULLETSTATE );
- return rBulletState.GetValue();
- }
- else
- return false;
-#endif
}
const SvxNumberFormat* Outliner::GetNumberFormat( sal_Int32 nPara ) const
More information about the Libreoffice-commits
mailing list