remove unused code

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10293 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2005-07-17 15:58:48 +00:00
parent a4fc1ae96d
commit c888a3578e
2 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2005-07-17 Lars Gullik Bjønnes <larsbj@lyx.org>
* insetlabel.C (changeRefsIfUnique): remove unused code
2005-07-17 Lars Gullik Bjønnes <larsbj@lyx.org>
bug 1375

View File

@ -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<InsetCommand *>(it2->inset);
if (inset->getContents() == from) {
inset->setContents(to);
//inset->setButtonLabel();
changed_inset = true;
}
}
}