mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 05:37:11 +00:00
Get rid of BufferView::parMetrics()
This was used only once.
This commit is contained in:
parent
0fa3aba5c6
commit
b1e4a11767
@ -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_;
|
||||||
|
@ -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();
|
||||||
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user