diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index ab046e5593..eabca4a40d 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2005-07-17 Lars Gullik Bjønnes + + * insetlabel.C (changeRefsIfUnique): remove unused code + 2005-07-17 Lars Gullik Bjønnes bug 1375 diff --git a/src/insets/insetlabel.C b/src/insets/insetlabel.C index ccdef93a06..9c2ba9e994 100644 --- a/src/insets/insetlabel.C +++ b/src/insets/insetlabel.C @@ -74,15 +74,12 @@ void changeRefsIfUnique(BufferView & bv, string const & from, string const & to) ParIterator it = bv.buffer()->par_iterator_begin(); ParIterator end = bv.buffer()->par_iterator_end(); for ( ; it != end; ++it) { - bool changed_inset = false; for (InsetList::iterator it2 = it->insetlist.begin(); it2 != it->insetlist.end(); ++it2) { if (it2->inset->lyxCode() == code) { InsetCommand * inset = static_cast(it2->inset); if (inset->getContents() == from) { inset->setContents(to); - //inset->setButtonLabel(); - changed_inset = true; } } }