mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
a4fc1ae96d
commit
c888a3578e
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user