X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FParagraphMetrics.cpp;h=72b212b10cde88f924d0da585396452f8d2d6e2d;hb=2b02b73f4a59bb73f9e819a960ea98c86ef8716f;hp=0cbe3e9a76d60f7ca316bd3ad0d719b7f79e80ab;hpb=a6b07608d8e9de24383d3ebaec20b6b265ed9314;p=lyx.git diff --git a/src/ParagraphMetrics.cpp b/src/ParagraphMetrics.cpp index 0cbe3e9a76..72b212b10c 100644 --- a/src/ParagraphMetrics.cpp +++ b/src/ParagraphMetrics.cpp @@ -88,25 +88,6 @@ void ParagraphMetrics::setPosition(int position) } -Row & ParagraphMetrics::getRow(pos_type pos, bool boundary) -{ - LBUFERR(!rows().empty()); - - // If boundary is set we should return the row on which - // the character before is inside. - if (pos > 0 && boundary) - --pos; - - RowList::iterator rit = rows_.end(); - RowList::iterator const begin = rows_.begin(); - - for (--rit; rit != begin && rit->pos() > pos; --rit) - ; - - return *rit; -} - - Row const & ParagraphMetrics::getRow(pos_type pos, bool boundary) const { LBUFERR(!rows().empty());