diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-25 11:03:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-25 12:03:50 +0200 |
commit | 2fffaf6f05d829e345ad8b391646a6e8df9a9a26 (patch) | |
tree | ec1b7343262433ee2ea9ab6e5197b6fd2327b685 /desktop/source/app/langselect.cxx | |
parent | f74da1315a5b2ec232a66944e41ff90231b383be (diff) |
loplugin:unusedmethods
Change-Id: Ia874baf21257e5fe41e104211068a2bcc50446eb
Reviewed-on: https://gerrit.libreoffice.org/40391
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/app/langselect.cxx')
-rw-r--r-- | desktop/source/app/langselect.cxx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/desktop/source/app/langselect.cxx b/desktop/source/app/langselect.cxx index ea3f605c6bcc..3af3652de083 100644 --- a/desktop/source/app/langselect.cxx +++ b/desktop/source/app/langselect.cxx @@ -70,31 +70,6 @@ void setMsLangIdFallback(OUString const & locale) { } -OUString getEmergencyLocale() { - if (!foundLocale.isEmpty()) { - return foundLocale; - } - try { - css::uno::Sequence<OUString> inst( - officecfg::Setup::Office::InstalledLocales::get()-> - getElementNames()); - OUString locale( - getInstalledLocaleForLanguage( - inst, - officecfg::Office::Linguistic::General::UILocale::get())); - if (!locale.isEmpty()) { - return locale; - } - locale = getInstalledLocaleForSystemUILanguage(inst); - if (!locale.isEmpty()) { - return locale; - } - } catch (css::uno::Exception & e) { - SAL_WARN("desktop.app", "ignoring Exception \"" << e.Message << "\""); - } - return OUString(); -} - bool prepareLocale() { // #i42730# Get the windows 16Bit locale, it should be preferred over the UI // locale: |