From 082993c38e68089282b42fdb46179ac2574d61d5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 5 Jul 2023 13:13:48 +0200 Subject: SvtCJKOptions::EOption is unused ever since commit 5db72ef0b381671b7867bda759098a92909e06d8 Author: Noel Grandin Date: Mon Jul 26 13:51:57 2021 +0200 drop SvtLanguageOptions class Change-Id: I2d56b0c21510239ef1ee1d0b95748641d485580c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154053 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svl/source/config/cjkoptions.cxx | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) (limited to 'svl') diff --git a/svl/source/config/cjkoptions.cxx b/svl/source/config/cjkoptions.cxx index 72e5c8ea2a3d..e43d379f7e66 100644 --- a/svl/source/config/cjkoptions.cxx +++ b/svl/source/config/cjkoptions.cxx @@ -105,30 +105,16 @@ bool IsAnyEnabled() IsRubyEnabled() || IsChangeCaseMapEnabled() || IsDoubleLinesEnabled() ; } -bool IsReadOnly(EOption eOption) +bool IsAnyReadOnly() { SvtCJKOptions_Load(); - switch (eOption) - { - case E_CJKFONT: return officecfg::Office::Common::I18N::CJK::CJKFont::isReadOnly(); - case E_VERTICALTEXT: return officecfg::Office::Common::I18N::CJK::VerticalText::isReadOnly(); - case E_ASIANTYPOGRAPHY: return officecfg::Office::Common::I18N::CJK::AsianTypography::isReadOnly(); - case E_JAPANESEFIND: return officecfg::Office::Common::I18N::CJK::JapaneseFind::isReadOnly(); - case E_RUBY: return officecfg::Office::Common::I18N::CJK::Ruby::isReadOnly(); - case E_CHANGECASEMAP: return officecfg::Office::Common::I18N::CJK::ChangeCaseMap::isReadOnly(); - case E_DOUBLELINES: return officecfg::Office::Common::I18N::CJK::DoubleLines::isReadOnly(); - case E_ALL: - return officecfg::Office::Common::I18N::CJK::CJKFont::isReadOnly() - || officecfg::Office::Common::I18N::CJK::VerticalText::isReadOnly() - || officecfg::Office::Common::I18N::CJK::AsianTypography::isReadOnly() - || officecfg::Office::Common::I18N::CJK::JapaneseFind::isReadOnly() - || officecfg::Office::Common::I18N::CJK::Ruby::isReadOnly() - || officecfg::Office::Common::I18N::CJK::ChangeCaseMap::isReadOnly() - || officecfg::Office::Common::I18N::CJK::DoubleLines::isReadOnly(); - default: - assert(false); - } - return false; + return officecfg::Office::Common::I18N::CJK::CJKFont::isReadOnly() + || officecfg::Office::Common::I18N::CJK::VerticalText::isReadOnly() + || officecfg::Office::Common::I18N::CJK::AsianTypography::isReadOnly() + || officecfg::Office::Common::I18N::CJK::JapaneseFind::isReadOnly() + || officecfg::Office::Common::I18N::CJK::Ruby::isReadOnly() + || officecfg::Office::Common::I18N::CJK::ChangeCaseMap::isReadOnly() + || officecfg::Office::Common::I18N::CJK::DoubleLines::isReadOnly(); } } // namespace SvtCJKOptions -- cgit