summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/langselect.cxx25
-rw-r--r--desktop/source/app/langselect.hxx2
2 files changed, 0 insertions, 27 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:
diff --git a/desktop/source/app/langselect.hxx b/desktop/source/app/langselect.hxx
index 84e701e29144..617e635e63f5 100644
--- a/desktop/source/app/langselect.hxx
+++ b/desktop/source/app/langselect.hxx
@@ -26,8 +26,6 @@
namespace desktop { namespace langselect {
-OUString getEmergencyLocale();
-
bool prepareLocale();
} }