whitespace, unused code, unused convenience function for debugging

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5589 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-11-06 11:13:56 +00:00
parent 2a06cda429
commit c22c2482f3
3 changed files with 5 additions and 12 deletions

View File

@ -123,22 +123,12 @@ void MathIterator::jump(difference_type i)
} }
/* bool MathIterator::normal() const
void MathIterator::shrink(size_type i)
{ {
if (i < size()) return back().pos_ < cell().size();
erase(begin() + i, end());
} }
void MathIterator::shrink(size_type i)
{
if (i < size())
erase(begin() + i, end());
}
*/
void MathIterator::shrink(size_type i) void MathIterator::shrink(size_type i)
{ {
if (i < size()) if (i < size())

View File

@ -50,6 +50,8 @@ public:
void goEnd(); void goEnd();
/// read access to top most item /// read access to top most item
MathArray const & cell() const; MathArray const & cell() const;
/// is this a non-end position
bool normal() const;
/// shrinks to at most i levels /// shrinks to at most i levels
void shrink(size_type i); void shrink(size_type i);

View File

@ -45,6 +45,7 @@ void MathNestInset::getPos(idx_type idx, pos_type pos, int & x, int & y) const
x += 2; x += 2;
} }
void MathNestInset::substitute(MathMacro const & m) void MathNestInset::substitute(MathMacro const & m)
{ {
for (idx_type i = 0; i < nargs(); ++i) for (idx_type i = 0; i < nargs(); ++i)