diff options
author | Akshay Deep <akshaydeepiitr@gmail.com> | 2017-07-20 18:21:30 +0530 |
---|---|---|
committer | Akshay Deep <akshaydeepiitr@gmail.com> | 2017-07-21 08:23:47 +0200 |
commit | a1dae1608afc518e4984694940450aa7950f89e3 (patch) | |
tree | 1c99dade72700907d802d986e6f79ba90c7c102e /sfx2 | |
parent | 91325884de5d3c3f838cfdcb1c70d42e5edab149 (diff) |
Remove unused function code special characters
Change-Id: I6610a986795c3169077b9c1a8e65a86f5488243d
Reviewed-on: https://gerrit.libreoffice.org/40230
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Akshay Deep <akshaydeepiitr@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/charmapcontrol.cxx | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/sfx2/source/control/charmapcontrol.cxx b/sfx2/source/control/charmapcontrol.cxx index d8535065621b..e9f7d75ae6b5 100644 --- a/sfx2/source/control/charmapcontrol.cxx +++ b/sfx2/source/control/charmapcontrol.cxx @@ -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) { |