diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-06-04 09:36:02 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2023-06-04 11:02:34 +0200 |
commit | ca595a7d7e35ca814e4eb6cb5d7afbc88f85c850 (patch) | |
tree | bca61d4fb88d0e026dcce98ae88a7529db2406ea /starmath | |
parent | 97710bbf1df975e896839cd78a34bdab7be7622a (diff) |
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 <serval2412@yahoo.fr>
Tested-by: Jenkins
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/inc/mathml/starmathdatabase.hxx | 8 | ||||
-rw-r--r-- | starmath/source/mathml/starmathdatabase.cxx | 11 |
2 files changed, 0 insertions, 19 deletions
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 @@ -267,14 +267,6 @@ 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. * * This is used to export mathml. 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) |