SvxGetOrCreatePosDic parameter is unused

...ever since fd069bee7e "initial import", so kill
the equally old "TODO: remove argument or provide SvxGetIgnoreAllList with the
same one" comment for good now

Change-Id: Ie7b64306b8d06fc72d0bb49cc1e5fa3b00f59d6b
This commit is contained in:
Stephan Bergmann
2016-07-08 18:20:39 +02:00
parent be08f61d6f
commit aae1018af6
6 changed files with 6 additions and 9 deletions

View File

@@ -825,7 +825,7 @@ int SpellDialog::InitUserDicts()
// add active, positive dictionary to dic-list (if not already done). // add active, positive dictionary to dic-list (if not already done).
// This is to ensure that there is at least on dictionary to which // This is to ensure that there is at least on dictionary to which
// words could be added. // words could be added.
Reference< XDictionary > xDic( SvxGetOrCreatePosDic( xDicList ) ); Reference< XDictionary > xDic( SvxGetOrCreatePosDic() );
if (xDic.is()) if (xDic.is())
xDic->setActive( true ); xDic->setActive( true );

View File

@@ -873,7 +873,7 @@ void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link<SpellCallbackInfo
// add the default positive dictionary to dic-list (if not already done). // add the default positive dictionary to dic-list (if not already done).
// This is to ensure that there is at least one dictionary to which // This is to ensure that there is at least one dictionary to which
// words could be added. // words could be added.
uno::Reference< linguistic2::XDictionary > xDic( SvxGetOrCreatePosDic( xDicList ) ); uno::Reference< linguistic2::XDictionary > xDic( SvxGetOrCreatePosDic() );
if (xDic.is()) if (xDic.is())
xDic->setActive( true ); xDic->setActive( true );

View File

@@ -431,7 +431,7 @@ Reference< XDictionary > SvxSpellWrapper::GetAllRightDic()
if (!xDic.is()) if (!xDic.is())
{ {
xDic = SvxGetOrCreatePosDic( xDicList ); xDic = SvxGetOrCreatePosDic();
if (xDic.is()) if (xDic.is())
xDic->setActive( true ); xDic->setActive( true );
} }

View File

@@ -742,9 +742,7 @@ uno::Reference< XLinguProperties > SvxGetLinguPropertySet()
return LinguMgr::GetLinguPropertySet(); return LinguMgr::GetLinguPropertySet();
} }
//TODO: remove argument or provide SvxGetIgnoreAllList with the same one uno::Reference< XDictionary > SvxGetOrCreatePosDic()
uno::Reference< XDictionary > SvxGetOrCreatePosDic(
uno::Reference< XSearchableDictionaryList > const & /* xDicList */ )
{ {
return LinguMgr::GetStandardDic(); return LinguMgr::GetStandardDic();
} }

View File

@@ -139,8 +139,7 @@ EDITENG_DLLPUBLIC css::uno::Reference<
css::linguistic2::XLinguProperties > SvxGetLinguPropertySet(); css::linguistic2::XLinguProperties > SvxGetLinguPropertySet();
//TODO: remove argument or provide SvxGetIgnoreAllList with the same one //TODO: remove argument or provide SvxGetIgnoreAllList with the same one
EDITENG_DLLPUBLIC css::uno::Reference< EDITENG_DLLPUBLIC css::uno::Reference<
css::linguistic2::XDictionary > SvxGetOrCreatePosDic( css::linguistic2::XDictionary > SvxGetOrCreatePosDic();
css::uno::Reference< css::linguistic2::XSearchableDictionaryList > const & xDicList );
EDITENG_DLLPUBLIC css::uno::Reference< EDITENG_DLLPUBLIC css::uno::Reference<
css::linguistic2::XDictionary > SvxGetIgnoreAllList(); css::linguistic2::XDictionary > SvxGetIgnoreAllList();
EDITENG_DLLPUBLIC css::uno::Reference< EDITENG_DLLPUBLIC css::uno::Reference<

View File

@@ -358,7 +358,7 @@ SwSpellPopup::SwSpellPopup(
// add the default positive dictionary to dic-list (if not already done). // add the default positive dictionary to dic-list (if not already done).
// This is to ensure that there is at least one dictionary to which // This is to ensure that there is at least one dictionary to which
// words could be added. // words could be added.
uno::Reference< linguistic2::XDictionary > xDic( SvxGetOrCreatePosDic( xDicList ) ); uno::Reference< linguistic2::XDictionary > xDic( SvxGetOrCreatePosDic() );
if (xDic.is()) if (xDic.is())
xDic->setActive( true ); xDic->setActive( true );