]> git.lyx.org Git - lyx.git/commitdiff
remove unused code
authorLars Gullik Bjønnes <larsbj@gullik.org>
Sun, 17 Jul 2005 15:58:48 +0000 (15:58 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Sun, 17 Jul 2005 15:58:48 +0000 (15:58 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10293 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetlabel.C

index ab046e5593cc0c4606446c15e52d5078a9232104..eabca4a40df9e6a2b367fc03b41b4c6aa3ca4431 100644 (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
index ccdef93a06f1c94de82ef92e2f417f46bc0854ab..9c2ba9e99480e3c78e022f77f16335e27fcc8466 100644 (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;
                                }
                        }
                }