From 2fffaf6f05d829e345ad8b391646a6e8df9a9a26 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 25 Jul 2017 11:03:15 +0200 Subject: loplugin:unusedmethods Change-Id: Ia874baf21257e5fe41e104211068a2bcc50446eb Reviewed-on: https://gerrit.libreoffice.org/40391 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- desktop/source/app/langselect.cxx | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'desktop/source/app/langselect.cxx') 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 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: -- cgit o/cib/libreoffice-6-0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff