From 53ce526058cfbe2ae37ce2d41a73d26bce68d2a5 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 30 Dec 2006 11:50:39 +0000 Subject: [PATCH] remove duplicate methods moved to TextMetrics.C. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16438 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/text.C | 56 ------------------------------------------------------ 1 file changed, 56 deletions(-) diff --git a/src/text.C b/src/text.C index 2f98e3df22..406491de33 100644 --- a/src/text.C +++ b/src/text.C @@ -97,62 +97,6 @@ using frontend::FontMetrics; namespace { -int numberOfSeparators(Paragraph const & par, Row const & row) -{ - pos_type const first = max(row.pos(), par.beginOfBody()); - pos_type const last = row.endpos() - 1; - int n = 0; - for (pos_type p = first; p < last; ++p) { - if (par.isSeparator(p)) - ++n; - } - return n; -} - - -int numberOfLabelHfills(Paragraph const & par, Row const & row) -{ - pos_type last = row.endpos() - 1; - pos_type first = row.pos(); - - // hfill *DO* count at the beginning of paragraphs! - if (first) { - while (first < last && par.isHfill(first)) - ++first; - } - - last = min(last, par.beginOfBody()); - int n = 0; - for (pos_type p = first; p < last; ++p) { - if (par.isHfill(p)) - ++n; - } - return n; -} - - -int numberOfHfills(Paragraph const & par, Row const & row) -{ - pos_type const last = row.endpos(); - pos_type first = row.pos(); - - // hfill *DO* count at the beginning of paragraphs! - if (first) { - while (first < last && par.isHfill(first)) - ++first; - } - - first = max(first, par.beginOfBody()); - - int n = 0; - for (pos_type p = first; p < last; ++p) { - if (par.isHfill(p)) - ++n; - } - return n; -} - - void readParToken(Buffer const & buf, Paragraph & par, LyXLex & lex, string const & token, LyXFont & font, Change & change, ErrorList & errorList) { -- 2.39.2