From 80c7326663d0b3487c5037d097f305590e16676f Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sat, 7 Mar 2009 21:09:41 +0000 Subject: [PATCH] Remove setBuffer() calls that are no longer needed. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28720 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 1 - src/CutAndPaste.cpp | 6 ------ 2 files changed, 7 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index ec99566dba..74582bc904 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -2763,7 +2763,6 @@ void Buffer::updateLabels(bool childonly) const // update all caches clearReferenceCache(); - inset().setBuffer(const_cast(*this)); updateMacros(); Buffer & cbuf = const_cast(*this); diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index 610f71caf8..b30974a401 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -221,12 +221,6 @@ pasteSelectionHelper(Cursor & cur, ParagraphList const & parlist, InsetIterator const i_end = inset_iterator_end(in); for (InsetIterator it = inset_iterator_begin(in); it != i_end; ++it) { - // Insets store buffer references so need updating. - // FIXME This code can probably be deleted. The insets will get copied - // when they are pasted, at which point their buffer_ members will get - // set back to zero. - it->setBuffer(const_cast(buffer)); - switch (it->lyxCode()) { case LABEL_CODE: { -- 2.39.2