Remove assertion that are already checked in debug mode.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26667 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-10-01 08:15:02 +00:00
parent 0668df3828
commit 1b47d2e5e2

View File

@ -297,7 +297,6 @@ void InsetListings::doDispatch(Cursor & cur, FuncRequest & cmd)
cur.recordUndoSelection();
pit_type const pit_end = cur.selEnd().pit();
for (pit_type pit = cur.selBegin().pit(); pit <= pit_end; pit++) {
LASSERT(pit < paragraphs().size(), /**/);
paragraphs()[pit].insertChar(0, '\t',
buffer().params().trackChanges);
// Update the selection pos to make sure the selection does not
@ -323,7 +322,6 @@ void InsetListings::doDispatch(Cursor & cur, FuncRequest & cmd)
cur.recordUndoSelection();
pit_type const pit_end = cur.selEnd().pit();
for (pit_type pit = cur.selBegin().pit(); pit <= pit_end; pit++) {
LASSERT( pit < paragraphs().size(), /**/ );
Paragraph & par = paragraphs()[pit];
if (par.getChar(0) == '\t') {
if (cur.pit() == pit)
@ -348,8 +346,6 @@ void InsetListings::doDispatch(Cursor & cur, FuncRequest & cmd)
} else {
// If there is no selection, try to remove a tab or some spaces
// before the position of the cursor.
LASSERT(cur.pit() >= 0 && cur.pit() < paragraphs().size(), /**/);
Paragraph & par = paragraphs()[cur.pit()];
pos_type const pos = cur.pos();