summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-25 11:03:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-25 12:03:50 +0200
commit2fffaf6f05d829e345ad8b391646a6e8df9a9a26 (patch)
treeec1b7343262433ee2ea9ab6e5197b6fd2327b685 /desktop
parentf74da1315a5b2ec232a66944e41ff90231b383be (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')
-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();
} }