From ca595a7d7e35ca814e4eb6cb5d7afbc88f85c850 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 4 Jun 2023 09:36:02 +0200 Subject: Remove unused starmathdatabase::Identify_Color_HTML Seems to be unused since 88c343b50a1de197394e3e22bf82ff455386a80b "Corrected my previous mess on mathml export with color export 2. Now only exports HTML4 colors and others are treated as #RRGGBB. Now mathml can import #RGB colors. " in 2020 Change-Id: Iac006383146afaa62775e6e76fa203925dce51d3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152585 Reviewed-by: Julien Nabet Tested-by: Jenkins --- compilerplugins/clang/unusedmethods.results | 2 -- starmath/inc/mathml/starmathdatabase.hxx | 8 -------- starmath/source/mathml/starmathdatabase.cxx | 11 ----------- 3 files changed, 21 deletions(-) diff --git a/compilerplugins/clang/unusedmethods.results b/compilerplugins/clang/unusedmethods.results index 8c0beae1aa23..fcda4538fe36 100644 --- a/compilerplugins/clang/unusedmethods.results +++ b/compilerplugins/clang/unusedmethods.results @@ -3026,8 +3026,6 @@ starmath/inc/mathml/mathmlMo.hxx:88 enum moOpDF operator&(enum moOpDF,enum moOpDF) starmath/inc/mathml/mathmlMo.hxx:98 enum moOpDP operator&(enum moOpDP,enum moOpDP) -starmath/inc/mathml/starmathdatabase.hxx:274 - struct SmColorTokenTableEntry starmathdatabase::Identify_Color_HTML(unsigned int) starmath/inc/mathml/starmathdatabase.hxx:294 struct SmColorTokenTableEntry starmathdatabase::Identify_Color_DVIPSNAMES(unsigned int) starmath/inc/node.hxx:508 diff --git a/starmath/inc/mathml/starmathdatabase.hxx b/starmath/inc/mathml/starmathdatabase.hxx index b4d3d6d3f8b5..cd5fe8ecdbdd 100644 --- a/starmath/inc/mathml/starmathdatabase.hxx +++ b/starmath/inc/mathml/starmathdatabase.hxx @@ -265,14 +265,6 @@ SmToken Identify_Postfix_SmXMLOperatorContext_Impl(sal_Unicode cChar); */ SmColorTokenTableEntry Identify_Color_Parser(sal_uInt32 cColor); -/** - * Identifies color from color code cColor. - * It will be returned with the HTML syntax. - * @param cColor - * @param parser color - */ -SmColorTokenTableEntry Identify_Color_HTML(sal_uInt32 cColor); - /** * Identifies color from color code cColor. * It will be returned with the MATHML syntax. diff --git a/starmath/source/mathml/starmathdatabase.cxx b/starmath/source/mathml/starmathdatabase.cxx index 66bdf3f3400c..cc6614cee4f1 100644 --- a/starmath/source/mathml/starmathdatabase.cxx +++ b/starmath/source/mathml/starmathdatabase.cxx @@ -710,17 +710,6 @@ SmColorTokenTableEntry starmathdatabase::Identify_Color_Parser(sal_uInt32 cColor return SmColorTokenTableEntry("", TRGBA, cColor); } -SmColorTokenTableEntry starmathdatabase::Identify_Color_HTML(sal_uInt32 cColor) -{ - for (auto i = std::begin(aColorTokenTableHTML); i < std::end(aColorTokenTableHTML); ++i) - if (i->equals(cColor)) - return i; - if ((cColor & 0x00FFFFFF) == cColor) - return SmColorTokenTableEntry("", TRGB, cColor); - else - return SmColorTokenTableEntry("", TRGBA, cColor); -} - SmColorTokenTableEntry starmathdatabase::Identify_Color_MATHML(sal_uInt32 cColor) { for (auto i = std::begin(aColorTokenTableMATHML); i < std::end(aColorTokenTableMATHML); ++i) -- cgit