From: Richard Heck Date: Mon, 16 Oct 2017 00:56:25 +0000 (-0400) Subject: Revert "Fix bug #8782." X-Git-Tag: 2.3.0rc1~42 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=402d41b82d6e0bd1d8ff72a29fd9d27f94a3d616;p=features.git Revert "Fix bug #8782." This caused slowness on undo and redo that was reported at https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg202292.html This reverts commit 02847641a8b97a57d1866120bb446427e0bda7a4. --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 49be7be9e2..52819f4ffb 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1365,16 +1365,6 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr) else dr.screenUpdate(Update::Force | Update::FitCursor); dr.forceBufferUpdate(); - // we only need to do this if we have deleted or restored a - // BiBTeX inset. but there is no other place to do it. one - // obvious idea is to try to do it in a copy constructor for - // InsetBibTeX, but when that is invoked, the buffer_ member - // is not yet set. another idea is to look at the InsetLists - // of the various paragraphs. but we'd have to recurse through - // the contained insets to make that work. it doesn't seem to - // be worth it, as this will not happen that often. - buffer().invalidateBibfileCache(); - buffer().removeBiblioTempFiles(); break; case LFUN_REDO: @@ -1385,9 +1375,6 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr) else dr.screenUpdate(Update::Force | Update::FitCursor); dr.forceBufferUpdate(); - // see above - buffer().invalidateBibfileCache(); - buffer().removeBiblioTempFiles(); break; case LFUN_FONT_STATE: