Kaydet (Commit) 6bec9bf0 authored tarafından Chris Sherlock's avatar Chris Sherlock Kaydeden (comit) Michael Meeks

editeng: remove dead code

Change-Id: I2ce15bc2c6b9663b479ae98bb1d5e0900716adcf
Reviewed-on: https://gerrit.libreoffice.org/47492Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
üst a74590e4
......@@ -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);
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment