Cleanup: Remove unneeded parameters.
This commit is contained in:
@@ -340,13 +340,11 @@ std::vector<ICURun> ItemizeScript(UChar *buff, size_t length, std::vector<ICURun
|
||||
*
|
||||
* Basically, this always returns the same or more runs than given.
|
||||
*
|
||||
* @param buff The string to itemize.
|
||||
* @param length The length of the string.
|
||||
* @param runs_current The current runs.
|
||||
* @param font_mapping The font mapping.
|
||||
* @return The runs.
|
||||
*/
|
||||
std::vector<ICURun> ItemizeStyle(UChar *buff, size_t length, std::vector<ICURun> &runs_current, FontMap &font_mapping)
|
||||
std::vector<ICURun> ItemizeStyle(std::vector<ICURun> &runs_current, FontMap &font_mapping)
|
||||
{
|
||||
std::vector<ICURun> runs;
|
||||
|
||||
@@ -380,7 +378,7 @@ std::vector<ICURun> ItemizeStyle(UChar *buff, size_t length, std::vector<ICURun>
|
||||
|
||||
auto runs = ItemizeBidi(buff, length);
|
||||
runs = ItemizeScript(buff, length, runs);
|
||||
runs = ItemizeStyle(buff, length, runs, font_mapping);
|
||||
runs = ItemizeStyle(runs, font_mapping);
|
||||
|
||||
if (runs.size() == 0) return nullptr;
|
||||
|
||||
|
Reference in New Issue
Block a user