diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-05 13:13:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-05 18:55:40 +0200 |
commit | 082993c38e68089282b42fdb46179ac2574d61d5 (patch) | |
tree | 6c73c6fa4d9a1d471642b06e4666fe75ad6f5568 /svl | |
parent | ea0e9c0d4de19ac3f8fdfe91bdb085ad9e2b1757 (diff) |
SvtCJKOptions::EOption is unused
ever since
commit 5db72ef0b381671b7867bda759098a92909e06d8
Author: Noel Grandin <noel.grandin@collabora.co.uk>
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/config/cjkoptions.cxx | 30 |
1 files changed, 8 insertions, 22 deletions
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 |