Get rid of BufferView::parMetrics()

This was used only once.
This commit is contained in:
Jean-Marc Lasgouttes 2025-01-09 15:26:11 +01:00
parent 0fa3aba5c6
commit b1e4a11767
3 changed files with 1 additions and 11 deletions

View File

@ -2985,13 +2985,6 @@ TextMetrics & BufferView::textMetrics(Text const * t)
} }
ParagraphMetrics const & BufferView::parMetrics(Text const * t,
pit_type pit) const
{
return textMetrics(t).parMetrics(pit);
}
int BufferView::workHeight() const int BufferView::workHeight() const
{ {
return height_; return height_;

View File

@ -45,7 +45,6 @@ class InsetMathNest;
class Length; class Length;
class MathData; class MathData;
class MathRow; class MathRow;
class ParagraphMetrics;
class Point; class Point;
class Text; class Text;
class TextMetrics; class TextMetrics;
@ -322,8 +321,6 @@ public:
/// ///
TextMetrics const & textMetrics(Text const * t) const; TextMetrics const & textMetrics(Text const * t) const;
TextMetrics & textMetrics(Text const * t); TextMetrics & textMetrics(Text const * t);
///
ParagraphMetrics const & parMetrics(Text const *, pit_type) const;
/// ///
CoordCache & coordCache(); CoordCache & coordCache();

View File

@ -980,7 +980,7 @@ void Cursor::getPos(int & x, int & y) const
Row const & Cursor::textRow() const Row const & Cursor::textRow() const
{ {
CursorSlice const & cs = innerTextSlice(); CursorSlice const & cs = innerTextSlice();
ParagraphMetrics const & pm = bv().parMetrics(cs.text(), cs.pit()); ParagraphMetrics const & pm = bv().textMetrics(cs.text()).parMetrics(cs.pit());
return pm.getRow(pos(), boundary()); return pm.getRow(pos(), boundary());
} }