]> git.lyx.org Git - lyx.git/commitdiff
whitespace, unused code, unused convenience function for debugging
authorAndré Pönitz <poenitz@gmx.net>
Wed, 6 Nov 2002 11:13:56 +0000 (11:13 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Wed, 6 Nov 2002 11:13:56 +0000 (11:13 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5589 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_iterator.C
src/mathed/math_iterator.h
src/mathed/math_nestinset.C

index ddfbc620aa4fc6eca595a9b30dde715289d28b0b..cda774c47adf1d8e6bdd98d356b6a7bbb7efede1 100644 (file)
@@ -123,20 +123,10 @@ void MathIterator::jump(difference_type i)
 }
 
 
-/*
-void MathIterator::shrink(size_type i)
-{
-       if (i < size())
-               erase(begin() + i, end());
-}
-
-
-void MathIterator::shrink(size_type i)
+bool MathIterator::normal() const
 {
-       if (i < size())
-               erase(begin() + i, end());
+       return back().pos_ < cell().size();
 }
-*/
 
 
 void MathIterator::shrink(size_type i)
index 8d71416a66e92d8c9ce624750e5a6138031843e4..53a9727f5da1495ef51f4578b8b8bca4add72312 100644 (file)
@@ -50,6 +50,8 @@ public:
        void goEnd();
        /// read access to top most item
        MathArray const & cell() const;
+       /// is this a non-end position
+       bool normal() const;
        /// shrinks to at most i levels
        void shrink(size_type i);
 
index 85c41832da10799a9921f00b9415dac65358225c..5308cfc8070dd2e88dccb99102df65de31f7afc7 100644 (file)
@@ -45,6 +45,7 @@ void MathNestInset::getPos(idx_type idx, pos_type pos, int & x, int & y) const
                x += 2;
 }
 
+
 void MathNestInset::substitute(MathMacro const & m)
 {
        for (idx_type i = 0; i < nargs(); ++i)