diff --git a/engine/src/flutter/third_party/txt/src/txt/paragraph_txt.cc b/engine/src/flutter/third_party/txt/src/txt/paragraph_txt.cc index 54d8cc486e..efbe2df0fb 100644 --- a/engine/src/flutter/third_party/txt/src/txt/paragraph_txt.cc +++ b/engine/src/flutter/third_party/txt/src/txt/paragraph_txt.cc @@ -1078,8 +1078,7 @@ void ParagraphTxt::Layout(double width) { } // for each in line_runs // Adjust the glyph positions based on the alignment of the line. - double line_x_offset = - GetLineXOffset(run_x_offset, line_number, justify_line); + double line_x_offset = GetLineXOffset(run_x_offset, justify_line); if (line_x_offset) { for (CodeUnitRun& code_unit_run : line_code_unit_runs) { code_unit_run.Shift(line_x_offset); @@ -1273,7 +1272,6 @@ void ParagraphTxt::UpdateLineMetrics(const SkFontMetrics& metrics, }; double ParagraphTxt::GetLineXOffset(double line_total_advance, - size_t line_number, bool justify_line) { if (isinf(width_)) return 0; diff --git a/engine/src/flutter/third_party/txt/src/txt/paragraph_txt.h b/engine/src/flutter/third_party/txt/src/txt/paragraph_txt.h index bb95e6e7a0..f5dc174e13 100644 --- a/engine/src/flutter/third_party/txt/src/txt/paragraph_txt.h +++ b/engine/src/flutter/third_party/txt/src/txt/paragraph_txt.h @@ -375,9 +375,7 @@ class ParagraphTxt : public Paragraph { // Calculate the starting X offset of a line based on the line's width and // alignment. - double GetLineXOffset(double line_total_advance, - size_t line_number, - bool justify_line); + double GetLineXOffset(double line_total_advance, bool justify_line); // Creates and draws the decorations onto the canvas. void PaintDecorations(SkCanvas* canvas,