Kaydet (Commit) a1dae160 authored tarafından Akshay Deep's avatar Akshay Deep

Remove unused function code special characters

Change-Id: I6610a986795c3169077b9c1a8e65a86f5488243d
Reviewed-on: https://gerrit.libreoffice.org/40230Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarAkshay Deep <akshaydeepiitr@gmail.com>
üst 91325884
......@@ -55,7 +55,6 @@ private:
void updateFavCharControl();
void getRecentCharacterList(); //gets both recent char and recent char font list
void updateRecentCharacterList(const OUString& rChar, const OUString& rFont);
void updateRecentCharControl();
};
......
......@@ -177,49 +177,6 @@ void SfxCharmapCtrl::updateRecentCharControl()
}
}
void SfxCharmapCtrl::updateRecentCharacterList(const OUString& sTitle, const OUString& rFont)
{
auto itChar = std::find_if(maRecentCharList.begin(),
maRecentCharList.end(),
[sTitle] (const OUString & a) { return a == sTitle; });
auto itChar2 = std::find_if(maRecentCharFontList.begin(),
maRecentCharFontList.end(),
[rFont] (const OUString & a) { return a == rFont; });
// if recent char to be added is already in list, remove it
if( itChar != maRecentCharList.end() && itChar2 != maRecentCharFontList.end() )
{
maRecentCharList.erase( itChar );
maRecentCharFontList.erase( itChar2);
}
if (maRecentCharList.size() == 16)
{
maRecentCharList.pop_back();
maRecentCharFontList.pop_back();
}
maRecentCharList.push_front(sTitle);
maRecentCharFontList.push_front(rFont);
css::uno::Sequence< OUString > aRecentCharList(maRecentCharList.size());
css::uno::Sequence< OUString > aRecentCharFontList(maRecentCharFontList.size());
for (size_t i = 0; i < maRecentCharList.size(); ++i)
{
aRecentCharList[i] = maRecentCharList[i];
aRecentCharFontList[i] = maRecentCharFontList[i];
}
std::shared_ptr<comphelper::ConfigurationChanges> batch(comphelper::ConfigurationChanges::create(comphelper::getProcessComponentContext()));
officecfg::Office::Common::RecentCharacters::RecentCharacterList::set(aRecentCharList, batch);
officecfg::Office::Common::RecentCharacters::RecentCharacterFontList::set(aRecentCharFontList, batch);
batch->commit();
updateRecentCharControl();
}
IMPL_STATIC_LINK(SfxCharmapCtrl, LoseFocusHdl, Control&, pItem, void)
{
......
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