From f1cc244c8b1df35270a694f4ddcabbf7c1b778be Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Wed, 14 Jan 2004 17:33:01 +0000 Subject: [PATCH] drop another function unknown to the outer world... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8348 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/formulabase.C | 2 +- src/mathed/math_iterator.C | 8 -------- src/mathed/math_iterator.h | 2 -- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/mathed/formulabase.C b/src/mathed/formulabase.C index 5e9d215b3d..40b6a1ea61 100644 --- a/src/mathed/formulabase.C +++ b/src/mathed/formulabase.C @@ -853,7 +853,7 @@ bool InsetFormulaBase::searchForward(BufferView * bv, string const & str, //metrics(bv); mathcursor->setSelection(it, ar.size()); current = it; - it.jump(ar.size()); + it.back().pos_ += ar.size(); bv->update(); return true; } diff --git a/src/mathed/math_iterator.C b/src/mathed/math_iterator.C index d8ad666d9e..8c11cad119 100644 --- a/src/mathed/math_iterator.C +++ b/src/mathed/math_iterator.C @@ -99,14 +99,6 @@ void MathIterator::operator++() } -void MathIterator::jump(difference_type i) -{ - back().pos_ += i; - //BOOST_ASSERT(back().pos_ >= 0); - BOOST_ASSERT(back().pos_ <= cell().size()); -} - - bool MathIterator::normal() const { return back().pos_ < cell().size(); diff --git a/src/mathed/math_iterator.h b/src/mathed/math_iterator.h index 3c33fb24de..f47d727025 100644 --- a/src/mathed/math_iterator.h +++ b/src/mathed/math_iterator.h @@ -44,8 +44,6 @@ public: explicit MathIterator(MathInset * p); /// move on one step void operator++(); - /// move on several steps - void jump(difference_type); /// helper for iend void goEnd(); /// read access to top most item -- 2.39.2