diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-06-15 06:50:48 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-06-15 08:27:18 +0200 |
commit | ac4719fe7365fb77c82bf5d937af069942671084 (patch) | |
tree | ce4577fe08700e5580709ec7927a4e9be6efd75a /unotools | |
parent | 0c96561a567fd7dbb394a1a44479a42aa149bcc7 (diff) |
Revert "Load the locales from config file for languagetool"
This reverts commit c3ed41752237a7a70c856dfb0d618f1c2eacea5a.
Jenkins fails in CppunitTest_sw_core_draw on Mac and Windows
Change-Id: I3e2b6359f3238a1b8af2e98d3cb5eee7aa864bae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135859
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/lingucfg.cxx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx index 03ad0747ad34..a38fb51b61b7 100644 --- a/unotools/source/config/lingucfg.cxx +++ b/unotools/source/config/lingucfg.cxx @@ -926,27 +926,6 @@ bool SvtLinguConfig::GetSupportedDictionaryFormatsFor( return bSuccess; } -bool SvtLinguConfig::GetLocaleListFor( const OUString &rSetName, const OUString &rSetEntry, css::uno::Sequence< OUString > &rLocaleList ) const -{ - if (rSetName.isEmpty() || rSetEntry.isEmpty()) - return false; - bool bSuccess = false; - try - { - uno::Reference< container::XNameAccess > xNA( GetMainUpdateAccess(), uno::UNO_QUERY_THROW ); - xNA.set( xNA->getByName("ServiceManager"), uno::UNO_QUERY_THROW ); - xNA.set( xNA->getByName( rSetName ), uno::UNO_QUERY_THROW ); - xNA.set( xNA->getByName( rSetEntry ), uno::UNO_QUERY_THROW ); - if (xNA->getByName( "Locales" ) >>= rLocaleList) - bSuccess = true; - DBG_ASSERT( rLocaleList.hasElements(), "Locale list is empty" ); - } - catch (uno::Exception &) - { - } - return bSuccess; -} - static bool lcl_GetFileUrlFromOrigin( OUString /*out*/ &rFileUrl, const OUString &rOrigin ) |