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
This commit is contained in:
Richard Heck 2009-03-07 21:09:41 +00:00
parent d7601a684b
commit 80c7326663
2 changed files with 0 additions and 7 deletions

View File

@ -2763,7 +2763,6 @@ void Buffer::updateLabels(bool childonly) const
// update all caches
clearReferenceCache();
inset().setBuffer(const_cast<Buffer &>(*this));
updateMacros();
Buffer & cbuf = const_cast<Buffer &>(*this);

View File

@ -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 &>(buffer));
switch (it->lyxCode()) {
case LABEL_CODE: {