]> git.lyx.org Git - lyx.git/blobdiff - src/undo_funcs.C
remove unused code
[lyx.git] / src / undo_funcs.C
index 49ad788a2cd744677387bf6da31d9450e5277208..4b67dfa20d7efbcc3dd3c6c42117df4d64477ad9 100644 (file)
@@ -216,7 +216,7 @@ bool textHandleUndo(BufferView * bv, Undo & undo)
                        // for an evt. new selection.
                        t->clearSelection();
                        t->selection.cursor = t->cursor;
-                       t->updateCounters(bv, t->cursor.row());
+                       t->updateCounters(bv);
                        bv->fitCursor();
                }
                bv->updateInset(it, false);
@@ -238,7 +238,7 @@ bool textHandleUndo(BufferView * bv, Undo & undo)
                        // for an evt. new selection.
                        t->clearSelection();
                        t->selection.cursor = t->cursor;
-                       t->updateCounters(bv, t->cursor.row());
+                       t->updateCounters(bv);
                }
        }
 
@@ -324,13 +324,7 @@ bool createUndo(BufferView * bv, Undo::undo_kind kind,
 
                while (tmppar != end && tmppar->next()) {
                        tmppar = tmppar->next();
-// FIXME: what does this #if 0 mean ?
-#if 0
                        tmppar2->next(new Paragraph(*tmppar, true));
-#else
-                       Paragraph * ptmp = new Paragraph(*tmppar, true);
-                       tmppar2->next(ptmp);
-#endif
                        // a memory optimization: Just store the layout
                        // information when only edit
                        if (kind == Undo::EDIT) {